Jump to content
Sign in to follow this  
ben_sherman

Restrict command by Skin ID.

Recommended Posts

Hey Bistudio members,

First of I'd like to thank the staff for allowing me to come here and ask questions.

So here I have my problem, I'm working on a siren script which is working perfectly right now, but I want to make different PD skins different siren sounds.

So if anyone could help me out I'd be pleased.

Here is my code:

if(iscop) then {if(vehicle player != player)then{[0,0,0,["activate"]] execVM "siren.sqf"; _handled=true;};};

Regards,

Ben

Share this post


Link to post
Share on other sites

Hi... If I understand you right here's a command you can try.

http://community.bistudio.com/wiki/typeOf

Example:-

if (typeOf _unit == [color="#FF8C00"]"USMC_SoldierS_Sniper"[/color]) then {
   //blah...blah...blah
};

You need the classname for this. There's probably better places to find classnames but check here as a start...

http://www.ofpec.com/COMREF/index.php?action=read&id=209#Man

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×