Yo, i am making a mission, and i have come to two barriers that i cant pass, so id thought id post them here. i want a script that checks if the unit is one of the units in an array when boarding a vehicle into the DRIVER, COMMANDER OR GUNNER seats (if there in passenger script is not to run), if they are then nothing happens, if they arnt then they are thrown out of the vehicle. this is what i have:
when any unit boards a vehicle script starts and checks if _unit is not one of the dudes in aray of 'EL, EN1, EN2'
then _soldier action ["eject", vehicle soldier];
display hint 'yo mofo, you cant drive that.'
http://community.bistudio.com/wiki/actionhttp://community.bistudio.com/wiki/isKindOfhttp://community.bistudio.com/wiki/typeOfhttp://community.bistudio.com/wiki/driverhttp://community.bistudio.com/wiki/lockDriverhttp://community.bistudio.com/wiki/assignedDriverI need some help compiling this, TIA,
grim.
plz can sum1 help, or direct me to some recorces?
SOLUTIONarray = _this;
_vehicle = _this select 0;
_position = _this select 1;
_man = _this select 2;
if (!(_man in [p1,p2,p3]) && _position != "cargo") then
{
hint format ["Hey %1, you asshat, only engineers can drive vehicles.",name _man];
_man action ["eject",_vehicle];
};