(01-11-2013, 03:44 PM)The Rock Worm Wrote: -snip-
EDIT: Working on 'Lovecraftian Deep Sea' story, but have two questions that I'm sure one of you can answer.
1: I've never worked with scripts (not counter the liquid script category). So how do I have a coding be attached to it?
2: I know that wind can be used to push the player (as in the custom story 'The Attic'), but what about pull the player? If so, how can this be done?
void AddPlayerBodyForce(float afX, float afY, float afZ, bool abUseLocalCoords);
afX - amount along the X-axis
afY - amount along the Y-axis
afZ - amount along the Z-axis
abUseLocalCoords - If true, axes are based on where the player is facing, not the world.
This function pushes the player in a certain direction. Adjust the
x,
y, and
z values depending on the direction that you want the player to be pushed.