View Issue Details

IDProjectCategoryView StatusLast Update
0009857New issuesScriptingpublic2018-09-30 13:48
ReporterGrafuAssigned To 
Status closedResolutionno change required 
Summary0009857: onColShapeLeave gets triggered after onColShapeHit when entering colshape directly from another

onColShapeLeave gets triggered after onColShapeEnter when entering colshape directly from another. That gets scripts into bugs very easily because if there is code attached to onColShapeEnter it will get overwritten by onColShapeLeave and state will be wrong in the new colshape. That happens sometimes and seem to depend

Steps To Reproduce
  1. crun addEventHandler("onClientColShapeHit", root, function(element) if element == localPlayer then outputChatBox("Hit") end end)
  2. crun addEventHandler("onClientColShapeLeave", root, function(element) if element == localPlayer then outputChatBox("Left") end end)
  3. Enter one colshape
  4. Change position to the second colshape
  5. Output:

Should be left and only then hit.

TagsNo tags attached.


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change