OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: hawkins308 on 01 Jul 2004, 07:41:20

Title: Dirt kicking up, random
Post by: hawkins308 on 01 Jul 2004, 07:41:20
Anyone know how to make the dirt puffs, from bullets impacting be random in size and shape? It would be nice if they lasted longer as well.
Title: Re:Dirt kicking up, random
Post by: ponq on 01 Jul 2004, 14:40:48
maybe this could work:
-add eventhandler "fired" to all units, to check when some1 shoots

-make the eventhandler exec a script which grabs the bullet.

-now keep track of the bulletpos untill it disappears (hits anything)

-use the drop command to create some brown smoke at the last pos of the bullet.