Mission Area Detection
by Nelson Rush · in Torque Game Engine · 08/22/2001 (9:26 pm) · 0 replies
in player.cs at about line 907 you will find two functions, onLeaveMissionArea and onEnterMissionArea which are empty. Fill them with the following code:
function onLeaveMissionArea(%obj)
{
messageClient(%obj.client,"","\c4**WARNING You have left the mission area!**");
}
function onEnterMissionArea(%obj)
{
messageClient(%obj.client,"","\c4**You have reentered the mission area.**");
}
function onLeaveMissionArea(%obj)
{
messageClient(%obj.client,"","\c4**WARNING You have left the mission area!**");
}
function onEnterMissionArea(%obj)
{
messageClient(%obj.client,"","\c4**You have reentered the mission area.**");
}
About the author