• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Script Error

Status
Not open for further replies.
Level 6
Joined
Sep 11, 2006
Messages
172
WE doesn't like my remove location custom script. Any ideas? :eek:

  • Shotgun
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((This trigger) is on) Equal to True
      • (Unit-type of (Attacking unit)) Equal to Survivor (Infantry Shotgun)
    • Actions
      • Custom script: local player p
      • Set sound[3] = No sound
      • Custom script: if GetLocalPlayer() == GetOwningPlayer(GetAttacker()) then
      • Set sound[3] = 10_Guage_Shotgun_SoundBible_com_74120584 <gen>
      • Custom script: endif
      • Sound - Play sound[3]
      • Set Temp_Point[3] = (Position of (Attacking unit))
      • Special Effect - Destroy ShotgunLight
      • Special Effect - Create a special effect at Temp_Point[3] using war3mapImported\TorchHumanOmni.mdx
      • Set ShotgunLight = (Last created special effect)
      • Wait 0.20 seconds
      • Special Effect - Destroy ShotgunLight
      • Custom script: call RemoveLocation (udg_Temp_Point)
 
Status
Not open for further replies.
Top