From Game Editor
- EventEnable:
Enable an Actor Event:
int EventEnable(char *actorName, unsigned long event)
- 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.
- unsigned long event
The following Events can be disabled using EventEnable: - EVENTMOUSEBUTTONDOWN
- EVENTMOUSEBUTTONUP
- EVENTMOUSEENTER
- EVENTMOUSELEAVE
- EVENTANIMATION
- EVENTANIMATIONFINISH
- EVENTPATHFINISH
- EVENTMOVEFINISH
- EVENTKEYDOWN
- EVENTKEYUP
- EVENTTIMER
- EVENTCOLLISION
- EVENTCOLLISIONFINISH
- EVENTCREATE
- EVENTDESTROYACTOR
- EVENTOUTOFVISION
- EVENTACTIVATIONEVENT
- EVENTALL
Return 1 if success, 0 on error.
- Script Editor Syntax:
EventEnable("Event Actor", EVENTMOUSEBUTTONDOWN);