OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: nominesine on 11 Aug 2005, 09:32:22
-
How do I create a bullet that flies through the air towards a designated target?
I know how to use camCreate/createVehicle, and the setDir/setVelocity commands but I don't have the name for the individual rounds of small arms.
-
i remember seeing this a few pages back ive just tried search and i cant find it
but i know it involves using a set velocity command to get it flying thoruhgh the air but i cant remember the Bullet name
-
To get the name, set yourself up with the right weapon and combine eventhandler fired, nearestobject and hint format commands to display the name of the bullet.
I won't attempt the syntax, it'll only cause confusion. ::)
-
bullet_767, if I remember it correctly.
:beat: *Gets Shot* :beat:
-
have a look at:
http://www.ofpec.com/editors/resource_view.php?id=857 (http://www.ofpec.com/editors/resource_view.php?id=857)
Especially the comments
All the bullet names can be found in the commented ccp files. Here is an extract:
   class BulletSingleW: BulletSingle {TRACER_W_OPTIONAL;};
   class BulletBurstW: BulletBurst {TRACER_W_OPTIONAL;};
   class BulletFullAutoW: BulletFullAuto {TRACER_W_OPTIONAL;};
   class BulletSilencedSingleW: BulletSilencedSingle {TRACER_N_ALWAYS;};
   class BulletSilencedBurstW: BulletSilencedBurst {TRACER_N_ALWAYS;};
   class BulletSniperW: BulletSniper {TRACER_N_ALWAYS;};
   class Bullet7_6W: Bullet7_6 {TRACER_W_ALWAYS;};
   class Bullet12_7W: Bullet12_7 {TRACER_W_ALWAYS;};
   class BulletSingleE: BulletSingle {TRACER_E_OPTIONAL;};
   class BulletBurstE: BulletBurst {TRACER_E_OPTIONAL;};
   class BulletFullAutoE: BulletFullAuto {TRACER_E_OPTIONAL;};
   class BulletSilencedSingleE: BulletSilencedSingle {TRACER_N_ALWAYS;};
   class BulletSilencedBurstE: BulletSilencedBurst {TRACER_N_ALWAYS;};
   class BulletSniperE: BulletSniper {TRACER_N_ALWAYS;};
   class Bullet7_6E: Bullet7_6 {TRACER_E_ALWAYS;};
   class Bullet12_7E: Bullet12_7 {TRACER_E_ALWAYS;};
   class BulletSingleG: BulletSingle {TRACER_G_OPTIONAL;};
   class BulletBurstG: BulletBurst {TRACER_G_OPTIONAL;};
   class BulletFullAutoG: BulletFullAuto {TRACER_G_OPTIONAL;};
   class BulletSilencedSingleG: BulletSilencedSingle {TRACER_N_ALWAYS;};
   class BulletSilencedBurstG: BulletSilencedBurst {TRACER_N_ALWAYS;};
   class BulletSniperG: BulletSniper {TRACER_N_ALWAYS;};
   class Bullet7_6G: Bullet7_6 {TRACER_G_ALWAYS;};
   class Bullet12_7G: Bullet12_7 {TRACER_G_ALWAYS;};