Flying actors... -
Hello, i created some actors sometime they are on the place where i created them, and sometimes they are random flying around see screenshot.
PHP код:
public OnGameModeInit()
{
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
// Actors
Test = CreateActor(188, 2498.410644, -1687.748901, 13.515432, 12.163675);
ApplyActorAnimation(Test, "RAPPING", "RAP_B_Loop", 4.1, 1, 0, 0, 0, 0); // rap 2
SetActorHealth(Test, 100);
CJ = CreateActor(0, 2493.921386, -1690.803833, 14.765625, 269.682464);
ApplyActorAnimation(CJ, "DEALER", "DEALER_IDLE", 4.1, 1, 0, 0, 0, 0); // crossarms 2
Grove1 = CreateActor(105, 2484.708496, -1685.320922, 13.508554, 288.282745);
ApplyActorAnimation(Grove1, "RAPPING", "RAP_C_Loop", 4.1, 1, 0, 0, 0, 0); // crossarms 2
Grove2 = CreateActor(106, 2485.615478, -1685.804687, 13.509647, 26.315229);
ApplyActorAnimation(Grove2, "GANGS", "prtial_gngtlkF", 4.1, 1, 0, 0, 0, 0); // chat 2
Grove3 = CreateActor(107, 2485.893554, -1684.786865, 13.506622, 110.853370);
ApplyActorAnimation(Grove3, "GANGS", "prtial_gngtlkB", 4.1, 1, 0, 0, 0, 0); // chat 2
Grove4 = CreateActor(293, 2485.031005, -1684.281982, 13.505460, 201.741760);
ApplyActorAnimation(Grove4, "RAPPING", "RAP_A_Loop", 4.1, 1, 0, 0, 0, 0); // chat 2
Ryder = CreateActor(271, 2477.548095, -1687.614990, 13.507812, 351.197601);
ApplyActorAnimation(Ryder, "SMOKING", "M_smklean_loop", 4.1, 1, 0, 0, 0, 0); // smoke 2
Smoke = CreateActor(269, 2478.449218, -1687.672973, 13.507812, 354.261810);
ApplyActorAnimation(Smoke, "SMOKING", "M_smklean_loop", 4.1, 1, 0, 0, 0, 0); // smoke 2
Re: Flying actors... -
Had this happen, too. Probably the actors stream in before the surface they're supposed to spawn on streams in, so the actors fall through the ground. Then the game engine respawns the actor on the closest sidewalk node. If you connect the three positions in your screenshot you can see that the path it creates follows the sidewalk.
This is pretty much the same thing that happens with vehicles suddenly spawning in the middle of the road. Very annoying, but I don't think it can be fixed, unfortunately. You could try placing a flat object with a very high drawdistance underground to give the actors a surface to spawn on.
Re: Flying actors... -
You'd have to mess about with the streamer, the recent this is happening as stated above is because the actors are just falling, they have a larger draw distance spawning rate than the objects you do, this could be fixed by placing a solid flat surface under the sidewalk and hopefully they should land on that and thus not end up flying