Difference between revisions of "TAGGED USE"

From 3DGE Wiki
Jump to: navigation, search
(This make a radius trigger script run only while the player is within the radius and is pressing the USE key.)
 
m
 
Line 12: Line 12:
  
 
// message when we look at something
 
// message when we look at something
 +
 
RECT_TRIGGER 652 1440 780 1456
 
RECT_TRIGGER 652 1440 780 1456
 
   TAGGED_USE
 
   TAGGED_USE

Latest revision as of 15:27, 24 July 2016

TAGGED_USE

Description: This make a radius trigger script run only while the player is within the radius and is pressing the USE key.

NOTE: you may need to add the TAGGED_INDEPENDENT property to your script, especially if it has any WAIT commands, otherwise the script stops running as soon as the player lets go of the USE key.

Example: This radius trigger script will fire off once if we are inside it and press the USE button.

// message when we look at something

RECT_TRIGGER 652 1440 780 1456

 TAGGED_USE
 TIP "Nothing of interest."

END_RADIUS_TRIGGER