Weapon holders, How do i create them? |
Weapon holders, How do i create them? |
Mar 6 2010, 15:43
Post
#1
|
|
Member Group: Members Posts: 75 Joined: 25-July 09 From: Ga,USA Member No.: 6,251 |
I am trying to create a weapon holder but in Mr. Murray's editing guide it doesnt say what to use for a weapon holder. Am I supposed to use any unit, a game logic, what?
|
|
|
Jun 14 2010, 17:47
Post
#2
|
|
Member Group: Members Posts: 131 Joined: 22-May 10 Member No.: 7,651 |
Wow.. i got this from that guide and it's way easy... but i'ma teach you another thing that it doesn't get explained in the guide.
First, just for you to know, everytime you want to create an object in an empty position or define a position it's always recommended to use the game logic 'cause it's invisible to view and you can use it as a normal object. Here're the steps to follow: (be aware that there's LOTS of scripts that create this for you... i had one that was very usefull, search them in the script section of any ArmA page) 1) Create a game logic, name it WPNPOS (you may name it as you wish, but be aware that you'll need to correct the following steps if you do so), place it where you want your weapon to be. 2) On the OnAct line of that logic place this: wpn = "weaponholder" createvehicle position wpnpos; wpn addweaponcargo ["M4A1",1]; wpn addmagazinecargo ["30rnd_556x45_stanag",3]; And that's all there is to it ! To explain it to you a little better, the commands addweaponcargo/addmagazinecargo are used to add a certain quantity of the asked magazine/weapon. in this case, you'll see 1 M4A1 with 3 magazines arround it. If you only add the weapon, it'll eventually be empty.. that's why i also added the magazined. You may add as many kinds of weapons and magazines as you wish to. Just configure the same command Now, here's a tip, when you want it created in the pos of an object or a logic on an object, you'll notice that it'll spawn a few meters away from it... that's because it won't spawn in the middle of an object... Now, to avoid that, and let the weapon be created EXACTLY where you want it to be, you'll need to separate it from the floor Using this command: wpn setpos [(getpos this select 0),(getpos this select 1),0.01] The height won't even be noticed by your eyes... but still, the game knows it Another tip, is for placing the weapon pointing in a desired direction, for example: Up, down, left, right or crossed. I'll leave ya some links about it 'cause i don't have time to explain : http://community.bistudio.com/wiki/setVectorDirAndUp http://community.bistudio.com/wiki/setVectorUp http://community.bistudio.com/wiki/setVectorDir Also recommend you check that page 'cause it's way better than the editing guide Hope it helped ya Best Regards, SGJackson! |
|
|
Lo-Fi Version | Time is now: 23rd April 2024 - 14:25 |