Mission Area
by Todd D. Degani · in Torque Game Engine · 02/23/2005 (2:33 pm) · 3 replies
I have started messing around with the mission area editor and am a little confused on something. In the Torque documentation it states
The part that is confusing me is that it doesn't seem to be doing any restriction at all. My ork in the demo can run right through and pass the mission area boundary. Is there any default behavior to "bounce" someone off this wall and I am just missing how it gets turned on or do I just need to script something in for when they leave the mission area?
Quote:Note that not all game types need to define a mission area. If you don't need to restrict your players to a certain sub-portion of your level's terrain, then you can freely ignore the mission area settings.
The part that is confusing me is that it doesn't seem to be doing any restriction at all. My ork in the demo can run right through and pass the mission area boundary. Is there any default behavior to "bounce" someone off this wall and I am just missing how it gets turned on or do I just need to script something in for when they leave the mission area?
#2
02/24/2005 (7:14 am)
Thanks for the information Harold. I had seen that resource, but before I implemented it I wanted to be sure there wasn't some default functionality attached to the mission area that I wasn't understanding.
#3
02/24/2005 (9:46 am)
@Todd: other than the ability for the code to have callbacks when the player leaves the mission area, there is nothing "stock" about the mission area itself--it's just a hook that you can use (onLeaveMissionArea/onEnterMissionArea IIRC).
Torque Owner Harold "LabRat" Brown
The following resource shows how to add a visible mission area boundry, it also shows how to "bounce" someone back.
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=4292