playMaker

Author Topic: Destroy when off screen  (Read 2417 times)

MIKMANNER

  • Playmaker Newbie
  • *
  • Posts: 10
Destroy when off screen
« on: March 02, 2012, 08:49:25 AM »
Hey - I've got bullets I want to destroy when off screen, anyone got a clue as to how to do this? I can't work it out - I don't want triggers because the 'screen' is constantly moving.

Cheers,
Mik

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: Destroy when off screen
« Reply #1 on: March 02, 2012, 03:47:52 PM »
If the bullet has an FSM you can use the BECAME INVISIBLE system event. E.g., Set up a global transition to a DestroyMe state triggered by the BECAME INVISIBLE event.

This event is sent when the object is no longer visible by any camera.