![]() |
#11
|
|||
|
|||
![]()
ok tried the last alteration, but still seeing exceptions when the timer comes to run despawner.
if (actor is AiAircraft) Timeout(despawntime, () => { damageAiControlledPlane(actor); }); i added a null check after the timeout but still problem exists if (actor is AiAircraft) Timeout(despawntime, () => { if(actor != null) damageAiControlledPlane(actor); }); basically I think the problem is the existance/ state of the object is different after aperiod than from when the timeout is called, ie the plane is just created. When the destroy actually runs, the aircraft has already been detroyed by activivity or something else. despite anull check it throws an exception. So the null is not the right check, in the wrong place or other problem is causing issue. However, I have noticed that the "on actor task completed" can have 1 ai interfere with another ai if the last path length crosses another ai path. Which makes me wonder if there is some cross over in other areas. any ideas anyone? |
|
|