OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Nippleboy on 03 Jun 2003, 21:05:35
-
Hi,
How can I make a moving trigger around a walking soldier so that if I move too far away from him he shoots me?
Cheers
Chris
-
set da unit captive (in da init line) : this setcaptive true
now make a triger like dat
Trig
condition field : unitname distance capturername > DistanceHeShotFrom
On activision : unitname setcaptive false
DistanceHeShotFrom is num ;)
LCD OUT
-
unitname distance capturername > DistanceHeShotFrom
unitname setcaptive false
I put this (exactly)
me 15 him > DistanceHeShotFrom
me setCaptive false
Didnt work,
What Is wrong?
cheers
Chris
-
No, that's :
me distance him > 15
distance is no number, it's a command ;)
-
DistanceHEShotFrom may need to be a number.
Only a guess though
Crikey......this time Igor beat me to it
Planck
-
@ Plance - start writin faster ;)
@ LCD - start explainin more
LCD OUT