Jump to content
Sign in to follow this  
Gidcon

Primaryweapon vehicle

Recommended Posts

primaryWeapon vehicle

example given : </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">primaryWeapon player<span id='postcolor'>

I've tried it and it tells me that i have an unknown operator

I tried : </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">primaryWeapon w3<span id='postcolor'>

Want to use it to c if a player has any type of weapon

in script it would look like something like this

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

#Weaponcheck

_wepcheck = primaryWeapon w9

?not(_wepcheck == "") : goto "Haswep"

~5

goto "Weaponcheck"

#Haswep

armed = true

exit<span id='postcolor'>

any suggestions on how this could be done with or without this command

Share this post


Link to post
Share on other sites

The primaryweapon command ets the currewnt primary weapon of a unit. Like an M16 or HK:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

Primaryweapon player<span id='postcolor'>

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">? Primaryweapon player == "HK":removeallweapons player

<span id='postcolor'>

tounge.gif PEACE

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Gidcon @ Sep. 21 2002,08:08)</td></tr><tr><td id="QUOTE">primaryWeapon vehicle

I've tried it and it tells me that i have an unknown operator

any suggestions on how this could be done with or without this command<span id='postcolor'>

Compatibility:

Version 1.75 required.

You did not write what version are you using. Resistance (1.76) or plain OFP (1.00-1.46)?

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  

×