OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: titan on 14 Apr 2003, 19:29:09

Title: cluster bomb?
Post by: titan on 14 Apr 2003, 19:29:09
what im thinking of is making a cluster bomb.

what it wld have to do..wld be in a Action menu command, it wld camcreate a grenade or smething from the plane, then when the nade gets to a certain altertude it wld explode, and other nades wld camcreate around it!

but is it pos to pick up a altertude?!
Title: Re:cluster bomb?
Post by: titan on 14 Apr 2003, 20:03:15
one other point...when u drop a bomb, does it have a auto name?!
Title: Re:cluster bomb?
Post by: macguba on 14 Apr 2003, 20:12:01
Not that I know of, though don't quote me.   I think the way to do it is use the nearestobject command to identify it immediately after it has been dropped.

Btw, if you think of an addition to your post after you have made it, it's better just to "modify" the original post.    Keeps the thread cleaner and easier to read. ;)

You could maybe do altitude by setpossing an invisible H to the ground underneath the bomb.     Then use distance command to set the detonation height.    I suspect a gamelogic or marker would be set to sea level, which is no good unless you use 0 for the height component of the setpos array.