OnClientMarkerHit

From Multi Theft Auto: Wiki
Revision as of 22:33, 26 September 2016 by Talidan (talk | contribs) (Reverted edits by Algeriany (talk) to last revision by 50p)
Jump to navigation Jump to search

This event is triggered when a player enters a marker created using createMarker.

Parameters

player hitPlayer, bool matchingDimension
  • hitPlayer: The player that hit the marker
  • matchingDimension: true if the player is in the same dimension as the marker he hit

Source

The source of this event is the marker that got hit by the player.

Example

This code will output a message to the chatbox whenever any player walks into any marker.

function MarkerHit ( hitPlayer, matchingDimension )
	outputChatBox ( getPlayerName(hitPlayer) .. " entered a marker" )
end
addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit )

See Also

Client marker events


Client marker functions