Home   Help Search Login Register  

Author Topic: Create bullet  (Read 1007 times)

0 Members and 1 Guest are viewing this topic.

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Create bullet
« 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.
OFPEC | Intel Depot
RETARDED Ooops... Retired!

Offline 456820

  • Contributing Member
  • **
Re:Create bullet
« Reply #1 on: 11 Aug 2005, 11:17:56 »
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

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Create bullet
« Reply #2 on: 11 Aug 2005, 11:43:52 »
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.  ::)
Plenty of reviewed ArmA missions for you to play

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Create bullet
« Reply #3 on: 11 Aug 2005, 11:58:53 »
bullet_767, if I remember it correctly.

:beat: *Gets Shot* :beat:

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Create bullet
« Reply #4 on: 11 Aug 2005, 22:39:49 »
have a look at:
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;};
« Last Edit: 11 Aug 2005, 22:44:26 by THobson »