Home   Help Search Login Register  

Author Topic: Is this possible?  (Read 661 times)

0 Members and 1 Guest are viewing this topic.

Offline Ding

  • Contributing Member
  • **
  • Jurassic Park
Is this possible?
« on: 19 Jul 2005, 16:31:26 »
Is it possible to create a weapon ingame with the camcreate command or any other method so that it appears like it would if the player had dropped it?
"If I remain lost and die on a cross, atleast I wasn't born in a manger"

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Is this possible?
« Reply #1 on: 19 Jul 2005, 16:34:00 »
Yes.  You need to create a weapon holder and then put the weapon in it.

Let me have a look and see what I have handy.

EDIT:
This is some code I use in mission.

Code: [Select]
_whx = 7144.28
_why = 6050.29
_whz = 0.25
wH1 = "weaponHolder" createVehicle [_whx,_why,_whz]
wH1 addMagazineCargo ["M16", 4]
wH1 addWeaponCargo ["M16", 1]
wH1 setPos [_whx,_why,_whz]
wH1 setDir 230
wH2 = "weaponHolder" createVehicle [_whx,_why,_whz]
wH2 addMagazineCargo ["HandGrenade", 2]
wH2 setPos [_whx+1.3,_why+1.2,_whz]
wH2 setDir 90
« Last Edit: 19 Jul 2005, 16:35:58 by THobson »

Offline Ding

  • Contributing Member
  • **
  • Jurassic Park
Re:Is this possible?
« Reply #2 on: 19 Jul 2005, 21:52:06 »
thanks very helpful :)
"If I remain lost and die on a cross, atleast I wasn't born in a manger"