OnClientColShapeLeave: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Black Dragon (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
This event | This event triggers whenever an element leaves a collision shape. | ||
==Syntax== | ==Syntax== | ||
Line 10: | Line 8: | ||
==Example== | ==Example== | ||
This example | This example outputs "Out." to the chatbox whenever a local user leaves a collision shape. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
function onClientColShapeLeave( theEntity, matchingDimension ) | |||
if ( theEntity == getLocalPlayer() ) then --Checks whether the leaving entity is the local player | |||
-- | outputChatBox( "Out." ) --Outputs. | ||
end | |||
end | |||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 07:27, 14 June 2007
This event triggers whenever an element leaves a collision shape.
Syntax
void onClientColShapeLeave ( entity theEntity, bool matchingDimension )
Example
This example outputs "Out." to the chatbox whenever a local user leaves a collision shape.
function onClientColShapeLeave( theEntity, matchingDimension ) if ( theEntity == getLocalPlayer() ) then --Checks whether the leaving entity is the local player outputChatBox( "Out." ) --Outputs. end end