Forcing a Weapon to Fire
Posted: 17 Aug 2008, 10:38
Can I use either COB or LUA script, to force a particular weapon to fire as is (no aiming necessary, just fire)?
The effect I'm trying to get at here is basically have the unit drop a bomb from one of its pieces in place, or emit an explosion (not cosmetic).
I believe a workaround would be emit-sfx'ing the explosion, then doing the damage using lua, but if I can, say, force a projectile or bomb to spawn, that would be nicer.
EDIT: I also just thought of a possible workaround using a unit, can someone tell me how to spawn a unit using lua? (not nearly as nice, but could be used temporarily)
The effect I'm trying to get at here is basically have the unit drop a bomb from one of its pieces in place, or emit an explosion (not cosmetic).
I believe a workaround would be emit-sfx'ing the explosion, then doing the damage using lua, but if I can, say, force a projectile or bomb to spawn, that would be nicer.
EDIT: I also just thought of a possible workaround using a unit, can someone tell me how to spawn a unit using lua? (not nearly as nice, but could be used temporarily)