HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Why does this trigger fire twice? (CtF)

08-12-2003, 05:51 AM#1
Squallish
I'm making a CtF style map, and I want the flag to go straight back to the spawn point if it's dropped.. but the trigger below fires twice, spamming two messages and remaking 2 flags.. anyone know why? And perhaps how to fix it?

Here's the trigger:

Drop Left Shoe
Events
Unit - A unit Loses an item
Conditions
(Item-type of (Item being manipulated)) Equal to Flag
Actions
Item - Remove (Item being manipulated)
Item - Create The Left Shoe at (Center of Flag Spawn <gen>)
Game - Display to (All players) the text: Flag has b...
Visibility - Enable fog of war
08-12-2003, 06:23 AM#2
bludragn
Try adding a Wait - 0.00 seconds before the first action (it actually waits even though you set it to 0). I'm thinking it is probably running the trigger once the drop order is given and removing it at the same time causing 2 triggers to run.
08-12-2003, 06:25 AM#3
Draco
As your first action, turn (this trigger) OFF. Then if it needs to be repeated, have the very last action be turn (this trigger) ON.
08-12-2003, 06:35 AM#4
Squallish
Thank you Blue Dragon :) It works fine now.

Here's the final trigger for any who also have this problem:

Events
Unit - A unit Loses an item
Conditions
(Item-type of (Item being manipulated)) Equal to Flag
Actions
Wait 0.00 seconds
Item - Move (Item being manipulated) to (Center of Flag Spawn <gen>)
Game - Display to (All players) the text: The Flag has b...