OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 307 on 08 Dec 2002, 03:02:21
-
Anyone know how to check if "player1" is within a certain distance of "comp1"?
i need to know how to make a var true if the player is within XX units of the comp
-
yes i know
ohh u wanna know how 2 do it ::)
put da next condition
player1 distance comp1 =< num
da number is da max distance da condition wil b true @
LCD OUT
-
Well.... there is a distance command....
the only way I ever use it is in a trigger like so:
condition: playerone distance comp1 < 2
activation: whatever
so.. I'm assuming that you could make your activation line be where you make your variable true ;) once the condition is met
BTW the 2 is = 2 metres ;)
EDIT*** I guess I have to type a little faster... LOL ;D *****
-
alright problem solved thx