From Game Editor
- CollisionState
This changes the actors collision state
int CollisionState(char *actorName, int state)
state: ENABLE or DISABLE // Enable collisions, disables collisions
- 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:
// Having your player move down to a lower platform
// Character->KeyDown (DOWN)->Script Editor
CollisionState("Event Actor", DISABLE);
// Character->KeyUp (DOWN)->Script Editor
CollisionState("Event Actor", ENABLE);