OnPlayerEnterColShape

From RAGE Multiplayer Wiki
Revision as of 05:48, 9 May 2023 by Xabi (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This event is triggered when a player enters a colshape.


C# Syntax

[ServerEvent(Event.PlayerEnterColshape)]

Parameters

  • shape: parameter input should be in ColShape type
  • player: parameter input should be in Player type

Example

[ServerEvent(Event.PlayerEnterColshape)]
public void OnPlayerEnterColshape(ColShape shape, Player player)
{
	player.SendChatMessage($"You entered {shape.Id}.");
}