- Documentation
- Shared functions
- isElementWithinColShape
Function
isElementWithinColShape
Checks whether an element is currently inside a collision shape.
Syntax
bool isElementWithinColShape(element theElement, colshape theShape)Arguments
theElementelement- The element.
theShapecolshape- The shape.
Returns
true if inside.
Example
addCommandHandler("kup", function(player)
if not isElementWithinColShape(player, shopZone) then
outputChatBox("Musisz być w sklepie.", player, 255, 0, 0)
return
end
end)