OnClientColShapeLeave: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
[[Category:Incomplete Event]]
__NOTOC__  
__NOTOC__  
This event is blahblah and is used for blahblah.
This event triggers whenever an element leaves a collision shape.


==Syntax==  
==Syntax==  
Line 10: Line 8:


==Example==  
==Example==  
This example does...
This example outputs "Out." to the chatbox whenever a local user leaves a collision shape.
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
--This line does...
function onClientColShapeLeave( theEntity, matchingDimension )
blabhalbalhb --abababa
    if ( theEntity == getLocalPlayer() ) then  --Checks whether the leaving entity is the local player
--This line does this...
        outputChatBox( "Out." )  --Outputs.
mooo
    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