OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 456820 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
-
it seems you've answered your own question...
-
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
-
He needs the the code. He knows what hes got to do but he needs the code.
-
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 (http://www.ofpec.com/yabbse/index.php?board=8;action=display;threadid=18281;start=0)...
as for the second question, always look in the editor's depot (http://www.ofpec.com/editors/resource_view.php?id=131) for tutorials. as you should know by now, pretty much everything is covered in there.
-
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...
-
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