@macguba
I always thought that when a lower ranking unit was joined to a higher ranking unit, the higher ranking unit would be leader by default.
Of course, if the player unit is a colonel, then you would be absolutely right. And I guess it doesn't hurt to be on the safe side.
-Pilot
EDIT:
thanks for the help, but theres just one more thing, which is that now the police just shoot at you when they see you, but what I need is for them only to shoot when fired at (or preferrably when fired at or near).
thanks
What you could do is add a 'fired' eventhandler to the player unit. When the player fires, the eventhandler would setcaptive the player false, ex:
put this in the player's init field:
this addeventhandler ["Fired", {_this setcaptive false}]
Be sure to also put the following in the player's init field:
this setcaptive true
EDIT EDIT:
Correction