OnEntityExitColShape

From GT-MP
Jump to: navigation, search
OnEntityExitColShape
Server-Side Function
Utilities-terminal.png Server-Side Csharp.png C#

This event is triggered when a entity exit a colshape.

Requirements

First of all, it should be defined in your Main constructor for it to be called, otherwise it wouldn't be initiated at all!

public Main()
{
    API.onEntityExitColShape += OnEntityExitColShapeHandler;
}

Usage example(s)

private void OnEntityExitColShapeHandler(ColShape shape, NetHandle entity)
{
    //Code
}

References