Jump to content
Sign in to follow this  
PFC_Mike

How do i make units have certain weapons?

Recommended Posts

I downloaded the M4 pack, and it rocks. How do I make a new unit to carry it? I'd like to use one of Frandsen's marine recon or marine, but I don't know anything aboiut .cpp or .cfg or whatever editing.

Btw, this unit would be for my own personal use.

Share this post


Link to post
Share on other sites

Visit www.ofpec.com and read the config.cpp-tutorial. wink.gif

Hint: inside your soldier's class, use 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">

weapons[] = {"M16","Throw","Put"};

magazines[] = {"M16","M16","M16","M16","HandGrenade","HandGrenade","HandGrenade","HandGrenade","HandGrenade","HandGrenade"};

<span id='postcolor'>

(example from the class "SoldierWB")

Share this post


Link to post
Share on other sites

Not sure who moved this to ME but IMO it's not ME, it was correctly posted in A&M as he wants to create addons for his own personal use smile.gif

Share this post


Link to post
Share on other sites

Well if you're ill go to bed and leave the forums alone, we don't want them covered in snot thank you very much wink.gif

Share this post


Link to post
Share on other sites

Its not snot, its throat phlegm, that nice yellowy, greenish stuff in your throat that makes you cough like youve been smoking for years smile.gif

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  

×