What is wrong with my function?

werasd

New Member
Reaction score
14
Trigger:
  • Spiderling Summon
    • Events
      • Unit - Queen Arachnid 0001 <gen>'s life becomes Less than or equal to 750.00
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in Cave Boss Region <gen>) and do (Actions)
        • Loop - Actions
          • Unit - Pause (Picked unit)
          • Destructible - Make Egg Sack 0814 <gen> Vulnerable
          • Destructible - Make Egg Sack 0815 <gen> Vulnerable
          • Destructible - Make Egg Sack 0816 <gen> Vulnerable
          • Destructible - Make Egg Sack 0817 <gen> Vulnerable
          • Destructible - Make Egg Sack 0809 <gen> Vulnerable
          • Destructible - Make Egg Sack 0810 <gen> Vulnerable
          • Destructible - Make Egg Sack 0811 <gen> Vulnerable
          • Destructible - Make Egg Sack 0812 <gen> Vulnerable
          • Destructible - Make Egg Sack 0813 <gen> Vulnerable
          • Player Group - Add (Owner of (Picked unit)) to SpiderlingCinematic
          • Cinematic - Turn cinematic mode On for SpiderlingCinematic
          • Camera - Pan camera for (Owner of (Picked unit)) to (Center of Cave Boss Region <gen>) with height 10.00 above the terrain over 0.00 seconds
          • Wait 2.00 seconds
          • Camera - Shake the camera for (Owner of (Picked unit)) with magnitude 3.00
          • Cinematic - Send transmission to SpiderlingCinematic from Queen Arachnid 0001 <gen> named Queen Arachnid: Play No sound and display You think you are a.... Modify duration: Add 4.00 seconds and Wait
          • Wait 4.00 seconds
          • Destructible - Kill Egg Sack 0814 <gen>
          • Unit - Create 1 Arachnid Slaves for Player 12 (Brown) at (Center of Cave Arachnid Spawn 1 <gen>) facing Default building facing degrees
          • Destructible - Kill Egg Sack 0815 <gen>
          • Unit - Create 1 Arachnid Slaves for Player 12 (Brown) at (Center of Cave Arachnid Spawn 2 <gen>) facing Default building facing degrees
          • Destructible - Kill Egg Sack 0816 <gen>
          • Unit - Create 1 Arachnid Slaves for Player 12 (Brown) at (Center of Cave Arachnid Spawn 3 <gen>) facing Default building facing degrees
          • Destructible - Kill Egg Sack 0817 <gen>
          • Unit - Create 1 Arachnid Slaves for Player 12 (Brown) at (Center of Cave Arachnid Spawn 4 <gen>) facing Default building facing degrees
          • Destructible - Kill Egg Sack 0809 <gen>
          • Unit - Create 1 Arachnid Slaves for Player 12 (Brown) at (Center of Cave Arachnid Spawn 9 <gen>) facing Default building facing degrees
          • Destructible - Kill Egg Sack 0810 <gen>
          • Unit - Create 1 Arachnid Slaves for Player 12 (Brown) at (Center of Cave Arachnid Spawn 8 <gen>) facing Default building facing degrees
          • Destructible - Kill Egg Sack 0811 <gen>
          • Unit - Create 1 Arachnid Slaves for Player 12 (Brown) at (Center of Cave Arachnid Spawn 7 <gen>) facing Default building facing degrees
          • Destructible - Kill Egg Sack 0812 <gen>
          • Unit - Create 1 Arachnid Slaves for Player 12 (Brown) at (Center of Cave Arachnid Spawn 6 <gen>) facing Default building facing degrees
          • Destructible - Kill Egg Sack 0813 <gen>
          • Unit - Create 1 Arachnid Slaves for Player 12 (Brown) at (Center of Cave Arachnid Spawn 5 <gen>) facing Default building facing degrees
          • Cinematic - Turn cinematic mode Off for SpiderlingCinematic
          • Unit - Unpause (Picked unit)
          • Custom script: call DestroyGroup (udg_SpiderlingCinematic)



When a try to save my map, JassHelper says that the last function (Custom script: call DestroyGroup (udg_SpiderlingCinematic)) is wrong. Can anyone tell me what is wrong with that?

Ohhh, and don't care for the rest of the trigger... thanks anyways.
 

Laiev

Hey Listen!!
Reaction score
188
you call to destroy group....

you need call to destroyforce

group = unit group
force = player group
:rolleyes:
 

Ayanami

칼리
Reaction score
288
First of all, DestroyGroup is meant for unit groups. DestroyForce is meant for player groups. Secondly, you don't need to destroy a unit or player group as long as you didn't set the variable. So adding and removing won't cause any problems. Just remove the player from the group if not in use.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top