Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Cross Shot

Help creating group

Recommended Posts

hi I'm new here and I'm attempting to make a script that allows people of a certain group to repair and refuel vehicles, I've tried using the or operator but that doesn't seem to help, this is what i have so far

setup.sqs

_vehicle = _this select 0;
_player = player;

#distcheck
?((_player distance _vehicle)<10): goto "actionadd"
goto "distcheck"

#actionadd
?(_player == engineer1):actionID = _vehicle addAction["Repair/Refuel","scripts\repair.sqf"]

where the ?(_player == engineer1) is, is where I'm trying to check it against multiple objects, I'm not sure if i can check through an array or not, any help would be greatly appreciated.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×