OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Gooner861 on 12 Jun 2004, 20:33:48

Title: Change res to enemy once shot fired
Post by: Gooner861 on 12 Jun 2004, 20:33:48
I have a scenario where ur patrolling in sum zone where there are also res dudes who are friendly at that time, but wen i shot is fired and kills ur officer how can u get the res dudes to turn as ur enemy and start shooting at u.

Thanks.
Title: Re:Change res to enemy once shot fired
Post by: macguba on 13 Jun 2004, 01:41:53
Make Resistance not friendly to your side.   In your init field write

this setCaptive true

when you want the Resy boys to start popping off in you direction write this in a trigger

On activation:  player setCaptive false
Title: Re:Change res to enemy once shot fired
Post by: Gooner861 on 13 Jun 2004, 14:20:34
But wont that just make them fire at me, i want them to fire at all my guys.
Title: Re:Change res to enemy once shot fired
Post by: macguba on 13 Jun 2004, 15:47:16
"_x setCaptive false" forEach ArrayOfYourUnits
Title: Re:Change res to enemy once shot fired
Post by: Gooner861 on 13 Jun 2004, 17:10:43
Ok thanks i get the setCaptive false thing but excuse my stupidity but wot is this ArrayOfYourUnits thing and how is that dun through a trigger?

Thanks.  :)