• 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.

[Trigger] Why does this trigger crash the game?

Status
Not open for further replies.
Level 2
Joined
Jul 2, 2007
Messages
6
Untitled Trigger 003 Copy Copy 2
  • Events
    • Unit - A unit owned by Player 1 (Red) Is issued an order targeting an object
  • Conditions
    • ((Triggering unit) is in RedDefence) Equal to True
  • Actions
    • Unit - Order (Triggering unit) to Hold Position
If i can get this trigger to work all my problems would be solved, PLease help.

Thankyou
Volkri

[Added triggertags]
 
Last edited by a moderator:
Level 8
Joined
Jul 23, 2005
Messages
329
A) Please place it in tags like so:
  • Untitled Trigger 003 Copy Copy 2
  • Events
  • Unit - A unit owned by Player 1 (Red) Is issued an order targeting an object
  • Conditions
  • ((Triggering unit) is in RedDefence) Equal to True
  • Actions
  • Unit - Order (Triggering unit) to Hold Position
B) I don't see anything in here that would cause a problem...
 
  • Untitled Trigger 003 Copy Copy 2
  • Events
  • Unit - A unit owned by Player 1 (Red) Is issued an order targeting an object
  • Conditions
  • ((Triggering unit) is in RedDefence) Equal to True
  • Actions
  • Trigger - Turn off (This Trigger)
  • Unit - Order (Triggering unit) to Hold Position
  • Trigger - Turn On (This Trigger)
you used
  • Unit - Order (Triggering unit) to Hold Position
and that fired an event, creating infinite loop.
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
isn't "Hold Position" a no-target order? could be wrong, but I think it will NOT fire the event...

^^ someone was faster

Check if the triggering unit is actually in the UnitGroup variable... really, make ABSOLUTE sure you added the unit to the group, because I've once tried fixing a trigger for 30 minutes before I noticed my unit group was still empty...
 
Status
Not open for further replies.
Top