Posted by fiXXXer on February 02, 1998 at 08:59:20:
In Reply to: Re: Yet more COG - Limiting Movement Area posted by CogKing on February 01, 1998 at 16:43:18:
> > 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