OnClientColShapeHit
Jump to navigation
Jump to search
This event triggers whenever an element enters a collision shape.
Syntax
void onClientColShapeHit ( entity theEntity, bool matchingDimension )
Example
This example outputs "In." to the chatbox whenever a local user enters a collision shape.
function onClientColShapeHit( theEntity, matchingDimension ) if ( theEntity == getLocalPlayer() ) then --Checks whether the entering entity is the local player outputChatBox( "In." ) --Outputs. end end