Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

3 Dimensional Chat / restricting movement to a matrix

Author
Message
Krimzon DestinE
19
Years of Service
User Offline
Joined: 18th Sep 2005
Location:
Posted: 15th Oct 2005 02:40
How would I be able to not let the characters walk off of the matrix?
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 15th Oct 2005 08:07
try posting these questions in the DB section, this is specifically for models

but

check the character's position,
if plrx > maxX then position object objnum, maxX, plry, plrz
if plrz > maxZ then position object objnum, plrx, plry, maxZ
if plrx < minX then position object objnum, minX, plry, plrz
if plrz < minZ then position object objnum, plrx, plry, minZ

max is the max boundary, and min is the min boundary

No one, not even your grandmother, loves their toaster as much as Young Rob does
My BLOG really sucks...

Login to post a reply

Server time is: 2024-11-27 14:25:26
Your offset time is: 2024-11-27 14:25:26