Home   Help Search Login Register  

Author Topic: Creating a bullet and check if a player is in cargo  (Read 671 times)

0 Members and 1 Guest are viewing this topic.

Loup-Garou

  • Guest
Creating a bullet and check if a player is in cargo
« on: 11 Jun 2004, 19:09:52 »
Hi, all. I've searched in the forum but i didn't find any answers to my questions :

1) With nameoftheunit in nameofthevehicle, you can check if a player is in a vehicle. But is it possible to check if the player is in cargo (not driver or gunner or commander, but only passenger) ? I'm not sure but the solution seems to use "addEventHandler" and "Get in cargo", "Nameofthevehicle"... :-\.

2) Can we create one (or more) bullet(s) in a script ? I want to use the player's coordinates (getPos AND getDir) and use these numbers for the bullet's position (x ,y, z).
« Last Edit: 11 Jun 2004, 19:28:54 by Loup-Garou »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Creating a bullet and check if a player is in cargo
« Reply #1 on: 11 Jun 2004, 20:06:13 »
Use the commands driver, commander and gunner to check if the unit in question is one of these:  if not, and he is in the vehicle, then he must be in cargo.
Plenty of reviewed ArmA missions for you to play