#end
if (fill distance gamelogic1 >= 10) then {goto "dontteleport"} else {goto "teleport"};
#teleport
hint "teleport"
fill setpos getpos gamelogic2
exit
#dontteleport
hint "dont teleport"
exit
Hi can anyone help me here, the script checks how close fill is to gamelogic1 and then makes an outcome, if fill is not in the range of 10m of the gamelogic1 it won't teleport him to gamelogic2 - but if he is in the range it will teleport him to gamelogic2.
The problem is that soon as the script goes to #teleport, the soldier named fill goes out of the range of 10m from gamelogic1 and thus #dontteleport is then ran.
I didn't think this happened, i thought OFP ignored the if statement once an outcome has been excuted, any ideas? thanks.