OnClientColShapeLeave

From Multi Theft Auto: Wiki
Revision as of 07:27, 14 June 2007 by Black Dragon (talk | contribs)
Jump to navigation Jump to search

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