Game Development Community

BOundaries

by arteria3d · in Torque Game Engine · 12/11/2004 (1:30 pm) · 1 replies

I have searched extensively on these forumns for some code or an idea as to how to stop the player going out of specific area within the game. The methods mentioned on the example code section is not really what i am looking for - and simply i want to program a no-frills barrier, that will simply stop the player moving out of the mission area.

I understand, that there is a command onleavemissionarea and obviously we have the get transform command to find the objets position. This might be a daft question - but what i.d. represents the actual player? and would i use this to get that object id's current position and then stop it going out of a particular x,y coord that i determine?

Thanks


Steve

About the author

Owner of uk based Ltd company ArteriaMediaLtd. with a trading name of Arteria3d Website;arteria3d.com


#1
12/11/2004 (1:33 pm)
Do you mean something like this ???

It adds a forcefield to your missionarea.