• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! 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