Posted by CogKing on February 01, 1998 at 16:43:18:
In Reply to: Yet more COG - Limiting Movement Area posted by fiXXXer on February 01, 1998 at 16:24:39:
> How can I limit the height the player can move?
> In my level, fly is on by default, but i don't want the player to be able to go all the way up.
> What do I put in the if here:
> if(???? < limithHeight)
> "Allow the player to go up" command goes here.
> Don't worry bout the command, just help me with da if.
if(VectorZ(GetThingPos(GetLocalPlayerThing())) <= limithHeight)
{
// he is OK
}
else
{
// he is too high
}
-CogKing