problem with actors
#1

Hello, i have an problem with actors.
Basically, when i create them, and apply animation on them they move from the position they should spawn, sometimes like 10-20ft away, cant see what the problem is, can you please check the code:

pawn Код:
new string[128];
        format(string,sizeof(string), "SPAWNED PED");
        HitnaInfo[playerid][PedText] = CreateDynamic3DTextLabel(string, -1, MedicSpawn[Random][0], MedicSpawn[Random][1], MedicSpawn[Random][2] + 0.8, 5.0, INVALID_PLAYER_ID,INVALID_VEHICLE_ID);

        HitnaInfo[playerid][Actor] = CreateActor(rsk, MedicSpawn[Random][0], MedicSpawn[Random][1], MedicSpawn[Random][2], MedicSpawn[Random][3]);
        ApplyActorAnimation(HitnaInfo[playerid][Actor], "BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
       
        c_SetPlayerCheckpoint(playerid, MedicSpawn[Random][0], MedicSpawn[Random][1], MedicSpawn[Random][2], 3.0);
        GPSOn[playerid] = 1;
Reply


Messages In This Thread
problem with actors - by ShoortyFl - 22.08.2016, 18:38
Re: problem with actors - by ShoortyFl - 22.08.2016, 19:07
Re: problem with actors - by Abagail - 22.08.2016, 21:44
Re: problem with actors - by ShoortyFl - 24.08.2016, 00:31

Forum Jump:


Users browsing this thread: 1 Guest(s)