Forum Jump :

Author Message


Posts: 312
Rank:


Level: Member

Country: us
Location: Casper, Wyoming
Occupation: Digital Artist / Graphic Designer
Age: 30
In-game name: C. Cunico / WyteOut

 
#1 Posted at 2011-02-10 00:51        
     
I have been trying to find all over the web on different forums about weapons code. So I can individually place the weapon in the Players hands in the Init: field. I found one but it was for Arma 2 and I have OA. Is there a way where I can find what the names of weapons and magazines are?

My Youtube for noobie scripters: http://www.youtube.com/user/WyteOutAgain

Author Message

VIPER[CWW]  

I'm a stable whore


Posts: 2126
Rank:


Level: Member

Country: en
Location:
Occupation:
Age: 30
In-game name: VIPER [RR]

 
#2 Posted at 2011-02-10 02:42        
     
Very easily actually, a quick search on classnames can bring up the lot, but as I have just added a lot of them to my site i'll provide a link ;) W0lle's Infinite Genious at BI Forums and My Site. Good Luck with your editing *THUMBS UP*

**Edit

That is all the OA Classnames; to add to units first put in the init:

removeAllWeapons this;

Only put "this" if the unit isnt named, if it is then like this:

removeAllWeapons randomname;
(with randomname, its exactly that any random name)

Now for adding weapons and magazines, you put this in the init:

this addWeapon "AK_74"; this addMagazine "30Rnd_545x39_AK";

where this is if the unit is named.... then add the name instead.

Also Welcome to Armaholic Wyte_Out *HI*

This post was edited by VIPER[CWW] (2011-02-10 02:55, ago)


Advertisement


Author Message


Posts: 312
Rank:


Level: Member

Country: us
Location: Casper, Wyoming
Occupation: Digital Artist / Graphic Designer
Age: 30
In-game name: C. Cunico / WyteOut

 
#3 Posted at 2011-02-10 03:13        
     
Thank you Viper! so I checked out all those weapons code and they all look legit, but what is the middle column for? like for instance the very first one is "AK-74" that is in the first column then in the 2nd column its "AK_74" what is the difference? and do I put both of them in the Init: field? sorry for all the questions lol

My Youtube for noobie scripters: http://www.youtube.com/user/WyteOutAgain

Author Message

VIPER[CWW]  

I'm a stable whore


Posts: 2126
Rank:


Level: Member

Country: en
Location:
Occupation:
Age: 30
In-game name: VIPER [RR]

 
#4 Posted at 2011-02-10 03:19        
     
*WRITE* The first AK-74 is to tell you the weapon's name the second AK_74 is the weapon's classname.

I understand the confusion... its why I started the weapons name in bold and underlined and the classname in quotes on my site :-)


Author Message


Posts: 312
Rank:


Level: Member

Country: us
Location: Casper, Wyoming
Occupation: Digital Artist / Graphic Designer
Age: 30
In-game name: C. Cunico / WyteOut

 
#5 Posted at 2011-02-10 03:22        
     
Ohhh! wait haha! Nevermind the light bulb popped on! column on the left is the name!! bahhaha! sorry.. had a brain fart. Thanks so much for your help Viper! your awesome man!!

My Youtube for noobie scripters: http://www.youtube.com/user/WyteOutAgain

Author Message

VIPER[CWW]  

I'm a stable whore


Posts: 2126
Rank:


Level: Member

Country: en
Location:
Occupation:
Age: 30
In-game name: VIPER [RR]

 
#6 Posted at 2011-02-10 03:24        
     
No problem mate, "had a brain fart"..... quote of the year hahaha thats going in my sig ;-)


Author Message


Posts: 312
Rank:


Level: Member

Country: us
Location: Casper, Wyoming
Occupation: Digital Artist / Graphic Designer
Age: 30
In-game name: C. Cunico / WyteOut

 
#7 Posted at 2011-02-10 03:55        
     
LMAO!! Awesome!! I am glad my vocabulary can amuse you! stay tuned for more! :-D

My Youtube for noobie scripters: http://www.youtube.com/user/WyteOutAgain