Both sides previous revision Previous revision | Next revision Both sides next revision | ||
hpl2:tutorials:script:pushdoorsopen [2011/07/18 12:29] ouroboros [Opening entities with doors] |
hpl2:tutorials:script:pushdoorsopen [2011/07/18 12:32] ouroboros [Push Doors Open( using Force)] |
||
---|---|---|---|
Line 5: | Line 5: | ||
- | [[http://wiki.frictionalgames.com/hpl2/tutorials/script/force|This page]] describes what AddBodyForce/AddPropForce does and how to find out which of the X, Y, or Z variables you want to increase or decrease, in this case it would be whichever way the door opens. | + | [[:hpl2:tutorials:script:force|This page]] describes what AddBodyForce/AddPropForce does and how to find out which of the X, Y, or Z variables you want to increase or decrease, in this case it would be whichever way the door opens. |
Line 31: | Line 31: | ||
"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. | "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. | ||
- | |||
===== Opening entities with "doors" ===== | ===== Opening entities with "doors" ===== |