| 08-25-2002, 04:23 AM | #1 |
Guest | i have no experience with triggers but am learning the engine slowly but surely... i take cheesy routes of command rather than a professional type trigger.. for ex: i want to make a unit change owner upon attack... and than be stored somewhere untill that unit that changed owner dies... than ahve the unit that attacked it come to the position of dying unit or whatever. Problem is i have it that the attacker teleports to a area on map which cant move.. making it seem the unit has changed into that unit. But.. sometimes 2 or more things attack it when im trying to and they end up at same region i have it teleport to.. or if i try to hide unit and have it replaced the same thing happens for the 1 or more attacking units.. here is what i use. Making cheesy units names for example A unit owned by "dog" is attacked Change owner of dog to attacking unit Move instantly attacking unit to blah region. (this is where multiple enemies sometimes teleport to spot) Now how do i do this so the unit is stored somewhere (the game store unit thing didnt work for me) and have it reappear how it was before it changed owner at the "dogs" death. Please help |
| 08-25-2002, 09:55 AM | #2 |
(I assume I gathered correctly in that the problem is: Two people attack at the same time, both get teleported but only one gets the dog?) If you want the trigger to only allow one person to trigger it, you should try this. Set the trigger's FIRST action to be "Trigger - turn off (this trigger)" Then either have it turn itself back on after it's executed, or (if you don't need it again) leave it off. You could do something like.. Trigger - turn off (this trigger) <your actions here> Wait 2.0 seconds Trigger - turn on (this trigger) So it'd work again afterwards. I hope that helps a bit. |
| 08-25-2002, 04:22 PM | #3 |
Or in the conditions you could check the owner of the dog. If the dog is owned by the player you started it with... |
| 08-25-2002, 05:36 PM | #4 |
Guest | the wait command helped alot it doesnt allow both units to trigger at same time .. at least not of yet and ive ran a million tests. the joys of WE |
