Skip to content
Create Callbacks/OnPlayerTriggerMob authored by Sabrosa's avatar Sabrosa
```cpp
void OnPlayerTriggerMob(int playerid, string scheme, int trigger)
```
Called when a player interacts with a mob. If he triggers it, `trigger` is set to 1, otherwise 0. `scheme` indicates the type of the triggered mob, which normally (for client-side mobs) is the first sequence of the mob's visual until the first underscore. For example, if a player sits down on a bench, the scheme is "BENCH".
\ No newline at end of file