beng
  • beng
  • 66.5% (Friendly)
  • Captain Topic Starter
4 years ago
The attached Zero Hour map file and map.ini shows how to make a shockwave weapon that throws objects away. In the map you have to use red guards to kick all the enemy units out of the island area to win. If the red guards die you will get new ones.

On another note, does anyone know how to make a shockwave weapon that affects the user object? I want to make infantry be able to jump by having them fire a shockwave weapon that throws them into the air.

One way to do it of course is to have them fire a suicide weapon with an unused death type and then in the Death behaviour OCL have it throw a new object of the same type with a random force, or else use flingforce in the death behaviour to throw the original dying object into the air then as it dies while flying, OCL a new object of the same type that inherits velocity. The down side to this is that the new object will be a different instance of the object so it will break scripts using named objects. Also it will not inherit the health of the previous object if it was damaged but will start with full health. Therefore it is preferable to throw the original object itself to make it jump.   ShockwaveWeaponTest.zip (62kb) downloaded 25 time(s).
Sponsor