User Tools

Site Tools


interactive_logic

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
interactive_logic [2026/05/04 01:03] frank_lee_smithinteractive_logic [2026/05/04 02:27] (current) frank_lee_smith
Line 51: Line 51:
 ==== Door setup ==== ==== Door setup ====
  
-  Select the door object. +  1. Select the door object. 
-  Add ''TTT Linear Mover''+  2. Add TTT Linear Mover. 
-  Set ''MoveDelta'' to the local-space offset from closed to open. + 
-  Set ''OpenDuration'' and ''CloseDuration''+{{::linearmover.png?600|}} 
-  Decide whether it should ''StartsOpen'' or ''StartsLocked''+ 
-  Give the object a unique name (like ''secret_door_1''.+  3. Set MoveDelta to the local-space offset from closed to open. 
 + 
 +{{::sbox-dev_haj4aw5a5x.gif?800|}} 
 + 
 +  4. Set OpenDuration and CloseDuration (Or don't, for default speed)
 +   
 +{{::openclose.png?800|}} 
 + 
 +  5. Decide whether it should StartsOpen or StartsLocked. 
 +   
 +  6. Give the object a unique name (like secret_door_1, so on and so forth). 
 +   
 +This process works similarly for rotating doors.
  
 ==== Button setup ==== ==== Button setup ====
  
-  Select the button object. +  7. Select the button object. 
-  Add ''TTT Button''+  8. Add TTT Button. 
-  Set ''Mode'' to ''Press''''Hold'', or ''Toggle''+  9. Set Mode to Press, Hold, or Toggle. 
-  Set ''HintText'' for the prompt shown to players. + 
-  Add a link under ''TargetsOnActivated''+{{::pressmode.png?800|}} 
-    * ''TargetName'' = ''door_secret'' + 
-    * ''Input'' ''Open''+  10. Set HintText for the prompt shown to players (Or ignore for default). 
 + 
 +  11. Add a link under TargetsOnActivated: 
 + 
 +{{::targets.png?800|}} 
 + 
 + 
 +==== You should not use all 3 Target fields like in the example above. We are demonstrating that the GameObject can be identified by name directly, with a tag or by using the dropper tool. ==== 
 + 
 +{{::tagname.png?600|}}
  
 ==== Optional polish ==== ==== Optional polish ====
interactive_logic.1777856594.txt.gz · Last modified: 2026/05/04 01:03 by frank_lee_smith

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki