View Issue Details

IDProjectCategoryView StatusLast Update
0009857New issuesScriptingpublic2018-04-30 16:30
ReporterGrafuAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Summary0009857: onColShapeLeave gets triggered after onColShapeHit when entering colshape directly from another
Description

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:
    Hit
    Left

Should be left and only then hit.

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change