Hi there. It's been a while since I last posted (new computer, new games, yay) but I've started working on some OFP missions again. Anyway, for one of the missions i'm working on at the moment, I need a script to:
Determine if the player kills a unit on the "EAST" side within a trigger, and will set the variable "PlayerAttacks" to "TRUE".
So, when the player is inside the base (in enemy uniform, but on the resistance side - he's setcaptived, hence the need for the playerattacks variable), if he attacks any of the russian units, the playerattacks variable gets set to true - and the playerattacks script turns off his captive status and sets off the alarm as well as dispatching guards all over the place. However, if he encounters some russians, say, in the bush 8 miles away, the script won't be set off (optionally, multiple versions of the script could be used for each location.)
Since the player will have no silenced weapons, this doesn't need a test to make sure the units know the player exists - just one to test wether he's killed any units.
Bonus points if the script can be activated from outside the trigger region - in case, for example, the player plants a whole bunch of satchel charges then leaves the region before blowing them up, the alarm will still be sounded. Etc etc.