ApplyActorAnimation Help
#6

You need to preload the animations for the actor.

Add this code in your script:
Код:
static s_AnimationLibraries[][] = {
        !"AIRPORT",    !"ATTRACTORS",   !"BAR",                 !"BASEBALL",
        !"BD_FIRE",    !"BEACH",            !"BENCHPRESS",  !"BF_INJECTION",
        !"BIKED",          !"BIKEH",        !"BIKELEAP",        !"BIKES",
        !"BIKEV",          !"BIKE_DBZ",     !"BMX",             !"BOMBER",
        !"BOX",            !"BSKTBALL",     !"BUDDY",           !"BUS",
        !"CAMERA",         !"CAR",          !"CARRY",           !"CAR_CHAT",
        !"CASINO",         !"CHAINSAW",     !"CHOPPA",          !"CLOTHES",
        !"COACH",          !"COLT45",       !"COP_AMBIENT", !"COP_DVBYZ",
        !"CRACK",          !"CRIB",         !"DAM_JUMP",         !"DANCING",
        !"DEALER",         !"DILDO",        !"DODGE",            !"DOZER",
        !"DRIVEBYS",   !"FAT",          !"FIGHT_B",      !"FIGHT_C",
        !"FIGHT_D",    !"FIGHT_E",      !"FINALE",               !"FINALE2",
        !"FLAME",      !"FLOWERS",      !"FOOD",                 !"FREEWEIGHTS",
        !"GANGS",      !"GHANDS",       !"GHETTO_DB",    !"GOGGLES",
        !"GRAFFITI",   !"GRAVEYARD",    !"GRENADE",      !"GYMNASIUM",
        !"HAIRCUTS",   !"HEIST9",       !"INT_HOUSE",    !"INT_OFFICE",
        !"INT_SHOP",   !"JST_BUISNESS", !"KART",                 !"KISSING",
        !"KNIFE",      !"LAPDAN1",              !"LAPDAN2",      !"LAPDAN3",
        !"LOWRIDER",   !"MD_CHASE",     !"MD_END",               !"MEDIC",
        !"MISC",       !"MTB",                  !"MUSCULAR",     !"NEVADA",
        !"ON_LOOKERS", !"OTB",                  !"PARACHUTE",    !"PARK",
        !"PAULNMAC",   !"PED",                  !"PLAYER_DVBYS", !"PLAYIDLES",
        !"POLICE",     !"POOL",                 !"POOR",                 !"PYTHON",
        !"QUAD",       !"QUAD_DBZ",     !"RAPPING",      !"RIFLE",
        !"RIOT",       !"ROB_BANK",     !"ROCKET",               !"RUSTLER",
        !"RYDER",      !"SCRATCHING",   !"SHAMAL",               !"SHOP",
        !"SHOTGUN",    !"SILENCED",     !"SKATE",                !"SMOKING",
        !"SNIPER",     !"SPRAYCAN",     !"STRIP",                !"SUNBATHE",
        !"SWAT",       !"SWEET",                !"SWIM",                 !"SWORD",
        !"TANK",       !"TATTOOS",              !"TEC",                  !"TRAIN",
        !"TRUCK",      !"UZI",                  !"VAN",                  !"VENDING",
        !"VORTEX",     !"WAYFARER",     !"WEAPONS",      !"WUZI",
        !"WOP",        !"GFUNK",                !"RUNNINGMAN"
};

stock static PreloadActorAnimations(actorid)
{
        for(new i = 0; i < sizeof(s_AnimationLibraries); i ++)
        {
            ApplyActorAnimation(actorid, s_AnimationLibraries[i], "null", 0.0, 0, 0, 0, 0, 0);
        }
}
Then use the preload function after you created the actor.
Код:
PreloadActorAnimations(actorid);
{
Thanks to Emmet_ for his code.
Reply


Messages In This Thread
ApplyActorAnimation Help - by WinterKiller - 31.05.2015, 08:13
Re: ApplyActorAnimation Help - by IgorLuiz - 01.06.2015, 00:07
Re: ApplyActorAnimation Help - by Abagail - 01.06.2015, 00:09
Re: ApplyActorAnimation Help - by WinterKiller - 03.06.2015, 09:06
Re: ApplyActorAnimation Help - by Luis- - 03.06.2015, 09:26
Re: ApplyActorAnimation Help - by Admigo - 04.06.2015, 04:25

Forum Jump:


Users browsing this thread: 3 Guest(s)