OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Loup-Garou 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).
-
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.