i have a nice script a really cool guy gave me but im not good at scripting so could sombody plz tell me what i use to exec it in the triggers activation field
_teamleads = _this select 0
_craft = _this select 1
_crewexit = _this select 2
?(_craft in attacked) : exit
_crafttype = typeof _craft
_pilot = driver _craft
_gunner = gunner _craft
_units = []
_cnt = 0
_teamcnt = count _teamleads
#unitegroups
_grp = group (_teamleads select _cnt)
_grp SetBehaviour "combat"
_unitgrp = units _grp
_units = _units + _unitgrp
_cnt = _cnt + 1
?(_cnt < _teamcnt) : goto "unitegroups"
?(_crewexit) : _units = _units + [_gunner, _pilot]
_unitcount = count _units
_craft land "land";
#landing
~.5
_z = getpos _pilot select 2;
?(attacked) : _craft flyinheight 35; exit
?(_z > 4): goto "landing"
loaded = false
?(_crewexit) : [_gunner] join grpnull; [_pilot] join grpnull ; (group _pilot) SetBehaviour "combat"; (group _gunner) SetBehaviour "combat";
~3
_anginc = 360 / _unitcount
_dis = 15
_cnt = 0
#Unload
_delay = 4
_unit = _units select _cnt
_unit action["getout",_craft]
unAssignVehicle _unit
;**********************************************************
; These lines particular to "rear ramp" exiting. Coment them out for ohter tpyes.
_pos = [_craft,35,180,3] call AngDirDisOff
_unit setpos _pos
;**********************************************************
;**********************************************************
; These lines conflict. For rear ramp exiting, comment out the first line, otherwise coment out the second.
;_dir = [_craft,_unit] call DirOff
_unit setDir (getDir _craft + 180)
;**********************************************************
?(_unit == player) : _delay = 3; Hint "You are to cover off the nose of the craft in the direction it is facing."; goto "skip"
_pos = [_craft,0,180,10] call AngDirDisOff
_unit doMove _pos
~3
_ang = _cnt * _anginc
_pos = [_craft,0,_ang,_dis] call AngDirDisOff
_unit doMove _pos
_pos = [_craft,0,_ang,(_dis+100)] call AngDirDisOff
_unit doWatch _pos
#skip
~_delay
_cnt = _cnt + 1
?(_unitcount > _cnt): goto "Unload"
@unitready _unit
[_gunner] join group _pilot
exit