Kolmain 6 Posted May 15, 2011 I need to detect if the player is in a civilian vehicle? Any ideas? Share this post Link to post Share on other sites
demonized 20 Posted May 15, 2011 cfgVehicles will give you the answer, but i dont have it on hand. But if west player is in control of civilian vehicle i think side vehicle will give west when you use (side (vehicle player)) maybe youre lucky and it doesnt. Share this post Link to post Share on other sites
Kolmain 6 Posted May 16, 2011 Nope, vehicles are the side of the commander :( anyone know how to use CfgVehicles? Share this post Link to post Share on other sites
twirly 11 Posted May 16, 2011 Not sure how you might implement this is your case but maybe _veh setvariable ["side","CIV"]; ... and then do the check. Share this post Link to post Share on other sites
demonized 20 Posted May 16, 2011 this works: _side = west; _classname = typeOf (vehicle player); _sv = getNumber (configFile >> "CfgVehicles" >> _classname >> "Side"); switch (_sv) do { case 0: {_side = east}; case 1: {_side = west}; case 2: {_side = resistance}; case 3: {_side = civilian}; }; hint format ["side of vehicle is %1",_side]; Share this post Link to post Share on other sites