OnClientColShapeHit: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Incomplete Event]]
__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