From Game Editor
- DestroyActor:
Destroys an Actor
int DestroyActor(char *actorName)
- actorName
- "Event Actor": Actor that is receiving the current event
- "Parent Actor": Event Actor's parent, if actor has a parent
- "Creator Actor": Event Actor's creator, if Event Actor has been created in some "Create Actor" action
- "Collide Actor": Actor that collided with the event Actor
- Any Actor in game
- ex:
// Destroying an enemy when hit by a projectile
// Enemy->Collision (fireball)->Script Editor
DestroyActor("Event Actor");