Home   Help Search Login Register  

Author Topic: Laying weapon  (Read 476 times)

0 Members and 1 Guest are viewing this topic.

Storm-Dk

  • Guest
Laying weapon
« on: 26 Dec 2003, 12:58:27 »
hmm.. I was worndering if you can make a weapons lay on the ground.. FX. a AK-47 laying on a table .. What can i do to make it do that..?

Storm out..

HuNtA

  • Guest
Re:Laying weapon
« Reply #1 on: 26 Dec 2003, 13:11:26 »
I think (not too sure) that U have to camcreate a weaponholder on the table:

ammobox = "weaponHolder" camcreate [getPos table, getPos table, getPos table +1]

(not too sure if thats correct)

then add the Ak47 to it like U do when U add weapons to ammo boxes:

ammobox addWeaponCargo ["AK47",1]

Storm-Dk

  • Guest
Re:Laying weapon
« Reply #2 on: 26 Dec 2003, 15:39:51 »
em.. sorry didnt work

deaddog

  • Guest
Re:Laying weapon
« Reply #3 on: 26 Dec 2003, 21:56:47 »
Code: [Select]
ammobox = "weaponHolder" camcreate [getPos table, getPos table, getPos table +1]
That's because this part is wrong.  Try this:

ammobox = "weaponHolder" camcreate [getPos table select 0,getpos table select 1, 1]

Of course, you need an object named "table" first.




cpt.Hawkeyez

  • Guest
Re:Laying weapon
« Reply #4 on: 26 Dec 2003, 21:59:25 »
Theres a Nice Little Example Mission of this in the Editors Depot which is still up by the way go look for it. It will Explain everything. Only thing is VehicleCamCreate takes about ten seconds to execut so might wanna giver him something to do 10 seconds before he gets the weapon.
/CymPatheeY

Storm-Dk

  • Guest
Re:Laying weapon
« Reply #5 on: 26 Dec 2003, 23:22:54 »
thanks guys..

Storm .. over and out