OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Nippleboy on 03 Jun 2003, 21:05:35

Title: Frogmarching
Post 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
Title: Re:Frogmarching
Post by: LCD on 03 Jun 2003, 21:13:10
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
Title: Re:Frogmarching
Post by: Nippleboy on 03 Jun 2003, 23:10:53

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


Title: Re:Frogmarching
Post by: Igor Drukov on 03 Jun 2003, 23:15:09
No, that's :
Code: [Select]
me distance him > 15
distance is no number, it's a command  ;)
Title: Re:Frogmarching
Post by: Planck on 03 Jun 2003, 23:15:27
DistanceHEShotFrom may need to be a number.


Only a guess though

Crikey......this time Igor beat me to it



Planck
Title: Re:Frogmarching
Post by: LCD on 04 Jun 2003, 00:47:29
@ Plance - start writin faster ;)

@ LCD - start explainin more

LCD OUT