Guten Abend,
ich möchte gerne meinen Actor erstellen und dann in einer Virtuellen Welt setzen mit einer Animation, leider klappt es nicht.
Actor wird Erstellt, Skin wird gesetzt, Virtuelle Welt wird gesetzt nur die Animation leider nicht.
enum ActorEnum{
acID,
acSkin,
Float:acX,
Float:acY,
Float:acZ,
Float:acA,
acLib[32],
acAnim[64],
Float:acSpeed,
acLoop,
acLockX,
acLockY,
acFreeze,
acTime,
acVW
};
new AcEnum[][ActorEnum] = {
{0, 12, 1477.2376, -1807.7637, 2350.4782, 0.0000, "PED", "SEAT_IDLE", 4.0999, 0, 0, 0, 1, 0, 1337}
};
// OnGameModeInit
for(new i = 0; i < sizeof(AcEnum); i++)
{
AcEnum[i][acID] = CreateActor(AcEnum[i][acSkin], AcEnum[i][acX], AcEnum[i][acY], AcEnum[i][acZ], AcEnum[i][acA]);
SetActorVirtualWorld(AcEnum[i][acID], AcEnum[i][acVW]);
PreloadActorAnimations(AcEnum[i][acID]);
ApplyActorAnimation(AcEnum[i][acID], AcEnum[i][acLib], AcEnum[i][acAnim], AcEnum[i][acSpeed], AcEnum[i][acLoop], AcEnum[i][acLockX], AcEnum[i][acLockY], AcEnum[i][acFreeze], AcEnum[i][acTime]);
}
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);
}
}
Hoffe einer kann mir Helfen.
Mit freundlichen Grüßen.