OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Mandoble on 25 Jun 2007, 12:03:51
-
exitWith only exists the current scope, using it doesnt guarantee to exit any script.
As an example:
SCOPE 0
while {true} do
{
SCOPE 1
while {player in truck1} do
{
SCOPE 2
if (damage truck1 > 0.5) exitWith {hint "Too much damage"};
}
RETURN POINT OF EXITWITH INSIDE SCOPE 2
if (damage truck1 > 0.5) exitWith {};
}
RETURN POINT OF EXITWITH INSIDE SCOPE 1
-
Thanks Mando
Really good info and much appreciated.
-
Yes Thanks!