OnClientColShapeHit: Difference between revisions
Jump to navigation
Jump to search
Black Dragon (talk | contribs) No edit summary |
Black Dragon (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
This event triggers whenever an element enters a collision shape. | This event triggers whenever an element enters a collision shape. |
Revision as of 07:47, 14 June 2007
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