View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0009856||New issues||Scripting||public||2018-04-30 16:16||2018-05-16 10:08|
|Summary||0009856: getElementColShape does not work|
getElementColShape always returns false for player no matter he is outside any colshape or inside a colshape
|Steps To Reproduce|
|Tags||No tags attached.|
Wiki example seems to suggest this function is for getting the col shape of a marker rather than of a player.
The source only works for CClientMarker and CClientPickup
Perhaps the function should output a debug message if the input element type is not supported.
The getElementColShape function is not used to get what colshape a user is in, but get the colshape belonging to an element. Which is why it only works for pickups and markers, since these elements have colshapes of their own.
So this is the intended behaviour of this function. What you're looking to achieve can be done using the onColShapeHit and onColShapeLeave events.