OnClientMarkerHit: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (→Parameters) |
||
(7 intermediate revisions by 4 users not shown) | |||
Line 8: | Line 8: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
*'''hitPlayer:''' | *'''hitPlayer:''' the [[player]] that hit the [[marker]]. | ||
*'''matchingDimension:''' ''true'' if the player is in the same dimension as the marker | *'''matchingDimension:''' ''true'' if the [[player]] is in the same [[dimension]] as the hit [[marker]]. | ||
==Source== | ==Source== | ||
Line 25: | Line 25: | ||
==See Also== | ==See Also== | ||
===Client marker events=== | |||
{{Client marker events}} | {{Client marker events}} | ||
===Client marker functions=== | |||
{{Client_marker_functions}} |
Revision as of 22:26, 2 April 2018
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 hit marker.
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
Shared
- createMarker
- getMarkerColor
- getMarkerCount
- getMarkerIcon
- getMarkerSize
- getMarkerTarget
- getMarkerType
- setMarkerColor
- setMarkerIcon
- setMarkerSize
- setMarkerTarget
- setMarkerType
- isElementWithinMarker