Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //From my Amnesia Rebirth Tutorial Series
- //Episode 29 Prop and Player Force! Flying Jesus!
- //https://www.youtube.com/playlist?list=PL4KkjlmOwLwwMVqedCNpi6caUxhgyf8Qr
- //-----------------------------------------------------------
- //Apply force to the player
- Player_AddBodyForce(cVector3f(0,0,100000), false);
- //forceDirection (cVector3f)- the vector to apply the force cVector3f(x,y,z).
- //localCoordinates (bool)- should the force be applied relative to the rotation of the entity (false will be relative to the maps coordinates).
- //Apply force to a swing door
- SwingDoor_PushOpen("door_1", 10, 3, 0.0);
- //doorName (String)- the name of your door as it appears in your level editor.
- //impulseStrength (float)- the ammount of force to apply to the door per impulse.
- //impulseAmount (int)- the number of impulses that should be applied.
- //impulseDelay (float)- the delay between each impulse.
- //Make an entity in your level active or inactive
- Entity_SetActive("jesus_1", true);
- //entityName (String)- the name of your entity as it appears in your level editor.
- //activate (bool)- should the entity be set active (true) or inactive (false).
- //Apply force to an entity in your map
- Entity_AddForce("jesus_1", cVector3f(-1000,0,0), false, false);
- //entityName (String)- the name of your entity as it appears in your level editor.
- //forceDirection (cVector3f)- the vector to apply the force cVector3f(x,y,z).
- //localCoordinates (bool)- should the force be applied relative to the rotation of the entity (false will be relative to the maps coordinates).
- //mainBodyOnly (bool)- should the force be applied to the main body of the object only (false will apply force to all joints and connections).
RAW Paste Data