Target Events v2Event-based shootable targets.DescriptionThis Add-On is based off the Shooting section of the Tutorial. It adds three new events - one input and two output events - to the game.
Input Event:
onTargetProjectileHit is triggered when one of the brick's targets is hit by a projectile.
Output Event:
spawnShootTarget is used to spawn a basic target on top of the brick, which can be given one of five appearances and made to appear 'knocked over'.
Output Event:
spawnMovingTarget is used to spawn targets (up to five per brick) that move a specified speed/time before being destroyed and generate events when shot.
Lots of credit to
Ephialtes for the Target models, which he made.
v2 fixes a glitch that could cause console errors and makes the timing for moving targets being deleted/shifted more accurate.
DownloadSpaceMods Home PageDownload PageDirect LinkView on RTB Download ManagerApart from the target models (which belong to Ephialtes), this mod has been placed under the SpaceMods license. Please follow the rules given in the license if modifying and releasing derivative works which use this code.