Home   Help Search Login Register  

Author Topic: A pistol on the table  (Read 1637 times)

0 Members and 1 Guest are viewing this topic.

mcnils

  • Guest
A pistol on the table
« on: 22 Sep 2002, 08:01:13 »


Is this possible? i mean NOT inside a Weapon Holder or an Ammo Crate, i mean just the weapon, maybe a Tokarev for example.

I repeat, i mean the model of the weapon.
(like when you droop a weapon on the ground from inventory)


 ???


*russian officer is in a interrogation with a captured nato spec op, nato spec op takes pistol on the table when guard looks in the other direction and kills the russian officer, after this he kills the guard and takes the AK and escapes from the prison camp*


Would be cool not?  8) ::)

Gameer_77

  • Guest
Re:A pistol on the table
« Reply #1 on: 22 Sep 2002, 11:39:25 »
You need to createvehicle a weaponholder on the table:

weaponH="WeaponHolder" createvehicle [coords,for,table]

then:

weaponH addweapon "Tokarov"

May or may not work.

Good idea though  :)

 8)PEACE

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:A pistol on the table
« Reply #2 on: 22 Sep 2002, 16:25:18 »
If it doesn't work you could probably camcreate a pistol in the right place ... would take a bit of experiment to get the height right though.

If you don't know how to use camCreate look at the [un]official command ref in the Ed Depot.
Plenty of reviewed ArmA missions for you to play

mcnils

  • Guest
Re:A pistol on the table
« Reply #3 on: 23 Sep 2002, 05:17:20 »

umm well ill try...
dont know if we mean the same thing..
i thougt that Weapon Holders are this "satchel" thing..
And i need to place the model of the weapon.. well ill try anyway.. ^__^

Schoeler

  • Guest
Re:A pistol on the table
« Reply #4 on: 25 Sep 2002, 04:28:04 »
I tried to do this as well and the CamCreate command won't do it.  What I thought you could do was write a script with a unit being created, ordered to drop the weapon on the table and then being teleported away or destroyed all before the player enters the room or the vicinity.

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:A pistol on the table
« Reply #5 on: 25 Sep 2002, 13:19:52 »
W1="weaponholder" createVehicle getpos Table; W1 addWeaponCargo ["beretta",1]

W1 Setpos [Getpos Table Select 0, Getpos Table Select 1, 0.8]

Thats all you need do.  The fist line makes a weaponholder, the next part of that line puts in a beretta.  You can change the name to add a different weapon.  Then the second line puts the gun up on the table.  Change the last number at the end to get the right height.

ShadowD BOB

  • Guest
Re:A pistol on the table
« Reply #6 on: 25 Sep 2002, 18:51:07 »
How do u actually put it into the mission?

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:A pistol on the table
« Reply #7 on: 25 Sep 2002, 18:56:07 »
Either as a script.  Or in a trigger or in the init.

Gameer_77

  • Guest
Re:A pistol on the table
« Reply #8 on: 25 Sep 2002, 19:00:28 »
Make a trigger, then in the condition put true. Then in the onactivation put this:

W1="weaponholder" createVehicle getpos Table; W1 addWeaponCargo ["beretta",1];W1 Setpos [Getpos Table Select 0, Getpos Table Select 1, 0.8]


Then make a table, and name it table.  :-*

 8)PEACE
« Last Edit: 25 Sep 2002, 19:02:13 by Gameer_77 »

mcnils

  • Guest
Re:A pistol on the table
« Reply #9 on: 26 Sep 2002, 07:16:21 »

Coooooooooool :P
well it works..


i need some other stuff and then i will be finally able to doo the mission i want :D


*is sad because he is a such scripting noob*


anyway thx ::)