10-18-2011, 02:13 PM
Okay, so I'm trying to create a Simple script to keep an eye on the players ROE. So I'm trying to create
an MPEventhandler with the command "AddMPEventHandler".
And I've understood that the script should look something like this (correct??):
grp addmpeventhandler ["killed", text "a friendly has died"]
Where; grp is an variable which consists of an array of all of the friendlies. (Can it be used this way, or do I need to use it "foreach"?)
But how can I make it so, that when one unit out of a certain array of units kills one out of another array, it gives a text and then ends the mission?
an MPEventhandler with the command "AddMPEventHandler".
And I've understood that the script should look something like this (correct??):
grp addmpeventhandler ["killed", text "a friendly has died"]
Where; grp is an variable which consists of an array of all of the friendlies. (Can it be used this way, or do I need to use it "foreach"?)
But how can I make it so, that when one unit out of a certain array of units kills one out of another array, it gives a text and then ends the mission?
Former "Bubba"