altmp / altv-issues

Issues and roadmap for alt:V project
93 stars 16 forks source link

Unknown event 41 GIVE_PED_SCRIPTED_TASK_EVENT #1844

Open b2soft opened 1 year ago

b2soft commented 1 year ago

Description of the problem

After spawning some peds at different positions and setting them a task to wander, sometimes task is not set and Unknown event 41 GIVE_PED_SCRIPTED_TASK_EVENT is logged. image image Even screenshot looks like collisions overlapping, this issue occurs with 1-2 peds placed distantly too

Reproduction steps

  1. Spawn some peds server-side
  2. Set task wander using emit + NetOwner
  3. Observe some peds are not wandering and message logged

Expected behaviour

Task is applied, no log message

Additional context

One assumption is incorrect state of ped. Maybe, ped is in wrong state to play wander task, but I still have no idea exactly why it's random.

Operating system

Win 10, Win 11

Version

15.0-dev135

Reproduction tested

b2soft commented 1 year ago

UPD: Tried to clear task before giving Wander, result is the same