Home   Help Search Login Register  

Author Topic: if unit is prone  (Read 1008 times)

0 Members and 1 Guest are viewing this topic.

Offline 456820

  • Contributing Member
  • **
if unit is prone
« on: 25 Jun 2005, 20:33:20 »
okay this may also be a job for drop particle ?
what im trying to do is when the player is prone against dirt/dusty grounds then when he fires a round and is right next to the ground the bullet wizes out the barel and would cause a bit of dirt and dust to go up like a miniture heli dust script but edited to look realistic to add some effects into a mission
how would i do this
first i would need to check if the player is on the floor ?
second i would need to create a small bit of dust around the barrel of the rifle being used wich in this case is an M21 as its a sniper mission

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:if unit is prone
« Reply #1 on: 26 Jun 2005, 08:10:58 »
it seems you've answered your own question...

Offline 456820

  • Contributing Member
  • **
Re:if unit is prone
« Reply #2 on: 26 Jun 2005, 08:58:57 »
ohhh okay then rephrased it wrong lol sorry i mean
how do i check if the unit is on the floor
then how do i do the drop particle array thing if anyone knows that would be great
i looked in the comref for the drop particle but it doesnt really say much

Offline OFPfreak

  • Members
  • *
  • Who is da operation flashpoint freak now, freak?!
    • OFP NFS mod
Re:if unit is prone
« Reply #3 on: 26 Jun 2005, 08:59:54 »
He needs the the code. He knows what hes got to do but he needs the code.
ofp nfs REBORN! All new nitro, neon, customized cars, off-road, on-road, rally, bikes, racer models and more!
ofp nfs's homepage

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:if unit is prone
« Reply #4 on: 26 Jun 2005, 10:02:12 »
the first question has been asked a few times now, and the agreed wisdom is that it's pretty difficult. various methods have been tried, none very successful. search the forum for apropriate threads...

as for the second question, always look in the editor's depot for tutorials. as you should know by now, pretty much everything is covered in there.

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:if unit is prone
« Reply #5 on: 26 Jun 2005, 14:30:19 »
Well, in this case detecting whether the unit is prone is easy because you only need that info when firing the weapon and when running the script from the fired eventHandler you can check the fired bullet's flying height and if it's low enough the script continues to create the dust drop[], if not, it exits...
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline 456820

  • Contributing Member
  • **
Re:if unit is prone
« Reply #6 on: 26 Jun 2005, 14:31:44 »
ahh thanks clever i thought of something like checking the height of the gun barrel but this will do im still trying to get the hang of the drop tut