I can't get it to work.. Tried everything exept the right thing
I write this in the init of MyHeli1
MyHeli1 AddEventHandler ["getin", {[] exec "allowGetIn.sqs"}]
This is my allowGetIn.sqs
_vehicle = _this select 0
_pos = _this select 1
_who = _this select 2
#tjek0
? _pos != cargo : Goto "tjekname" ELSE exit
#tjekname
?(_who) != (name pilot1) OR (_who) != (name pilot2) : Goto "Ejectplayer" ELSE exit
#Ejectplayer
(_who) action ["EJECT",_vehicle]
exit
What am I doing wrong?