User Tools

Site Tools


hpl2:tutorials:script:pushdoorsopen

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
hpl2:tutorials:script:pushdoorsopen [2011/07/18 12:34]
ouroboros [Push Doors Open( using Force)]
hpl2:tutorials:script:pushdoorsopen [2011/07/18 13:15]
ouroboros [Opening entities with doors]
Line 30: Line 30:
  
  
-"​string &in entity"​ at the beginning of the function(just after it's name) will become ​the entity'​s name if it's placed on the entity'​s PlayerLookAtCallback text box. Meaning, this would work for a door name "​mansion_1",​ and for another named "​room3"​ at the same time.+the "​entity"​ in "​string &in entity"​ at the beginning of the function(just after it's name) is a string variable that is assigned ​the entity'​s name if it's placed on the entity'​s PlayerLookAtCallback text box. Meaning, this would work for a door name "​mansion_1",​ and for another named "​room3"​ at the same time.
  
 ===== Opening entities with "​doors"​ ===== ===== Opening entities with "​doors"​ =====
  
  
-Opening entities with doors, that aren't door entities is fairly similar to opening doors, however you need to use AddBodyForce,​ which requires a body name rather than an entity name, rather than AddPropForce.+Opening entities with doors, that aren't door entities is fairly similar to opening doors, however you need to use AddBodyForce ​instead of AddPropForce, which requires a body name rather than an entity name.
  
  
hpl2/tutorials/script/pushdoorsopen.txt ยท Last modified: 2011/07/18 13:19 by ouroboros