Differences

This shows you the differences between two versions of the page.

Link to this comparison view

mission-making:scriptsnippet_triggeredpopuptrigger [2016/03/24 15:56] (current)
snippers created
Line 1: Line 1:
 +This will let you have pop-up targets that start down and popup when you enter a trigger and then will stay down until you leave and re-enter the trigger. It requires no scripts.
  
 +====== Set Up ======
 +You need:
 +  * A game logic with "nopop = true;" in it's init
 +  * A trigger with "{_x setDamage 0; _x animate["​terc",​ 0];} forEach (synchronizedObjects thisTrigger)"​
 +  * A popup target (find one under "​Objects Training"​) with "this setDamage 1; this animate["​terc",​ 1]" in it's init
 +  * Synchronise the popup target to the trigger
 +  * You can add more popup targets and sync them to the trigger and they'​ll all popup when a player enters the trigger.
 + 
 +{{ :​popupscriptdiagram.png?​nolink |}}
  • mission-making/scriptsnippet_triggeredpopuptrigger.txt
  • Last modified: 2016/03/24 15:56
  • by snippers