#I got this error with Dummies
1 messages · Page 1 of 1 (latest)
I used this to spawn
Player dummy = Player.Get(DummyUtils.SpawnDummy("Front Man"));
dummy.SetRole(PlayerRoles.RoleTypeId.ChaosConscript);
Item FrontManRevolver = dummy.AddItem(ItemType.GunRevolver);
dummy.CurrentItem = FrontManRevolver;
dummy.Position = new Vector3(14.188f, 295.381f, -7.906f);
dummy.Rotation = Quaternion.LookRotation(new Vector3(90f, 0f, 0f));
does this happen before round starts? if yes, it'll be fixed next update
No I spawn him after round starts
Ik about this
try waiting a frame before setting the current item
inventory is always sent a frame after modifying
Oh okay can you say how to do it? 😠Idk
Timing.CallDelayed(0, () => player.CurrentItem = item)
Ty
np
Oh intresting is thats not problem with that inventory,. When I click anything in RA After that it will pop up
when I removed
dummy.SetRole(PlayerRoles.RoleTypeId.ChaosConscript);
It stopped
maybe delay that oo
Timing.CallDelayed(0) effectively does that
Fixed in the next update
not a breaking bug
just annoying error when spawning dummies before round start
Yes