OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Pr0ph3t on 13 Mar 2005, 02:55:59

Title: QUICKIE! --> affect whole side
Post by: Pr0ph3t on 13 Mar 2005, 02:55:59
When the trigger activates I want all civilians on the map to suddenly go negative rating.. This is so troops can fire at them.

what's the command please? thanks! ;D
Title: Re:QUICKIE! --> affect whole side
Post by: Pr0ph3t on 13 Mar 2005, 03:12:54
HOLY SHIT

I did addrating -2100 instead of setcaptive false.. They continue shooting even after they're dead!! its awesome!
Title: Re:QUICKIE! --> affect whole side
Post by: Dubieman on 13 Mar 2005, 07:10:10
Pr0ph3t ,
You've had a few posts that get a little out of hand. I don't think we need to swear over the results of OFP scripting.

Well to give you an answer, you can put all the civs into an array, via trigger covering the whole map, and later call on that array with the command.

I haven't used this in awhile, but something along the lines of...

{_x addrating -4600} foreach _array

Title: Re:QUICKIE! --> affect whole side
Post by: Pr0ph3t on 15 Mar 2005, 04:37:39
None of those lines worked. However this one did for anyone else that might be in my shoes:

"_x addrating -2100" foreach (units group todie)"