4
Fork 0

Added a cell check to OnCellAttach in critter.psc, somehow a critter may not have a cell yet

development
Eddoursul 2 months ago
parent bca900a356
commit eb34dda08b
  1. BIN
      scripts/critter.pex
  2. 2
      source/scripts/critter.psc

Binary file not shown.

@ -251,7 +251,7 @@ EVENT OnCellAttach()
;~ Trace(self + "OnCellAttach() isDeleted", 2)
elseIf isDisabled()
;~ Trace(self + "OnCellAttach() isDisabled", 2)
else
elseif GetParentCell()
; possibly trigger shorter OnUpdate time in Critter OnCritterGoalFailed()
StopTranslation()
endIf

Loading…
Cancel
Save