Anim won't load/work -
Glossy42O - 06.12.2014
Some of the anims won't work like:
Lay
injured
wave
piss etc..
What's wrong ?
Код:
case 0:
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
}
case 1:
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_PISSING);
}
case 2:
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE1);
}
case 3:
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE2);
}
case 4:
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE3);
}
case 5:
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE4);
}
case 6:
{
ApplyAnimation(playerid,"ped","IDLE_CHAT",4.0,0,0,0,0,0);
}
case 7:
{
ApplyAnimation(playerid, "SNM", "SPANKING_IDLEW", 4.0, 1, 1, 1, 1, 0);
}
case 8:
{
ApplyAnimation(playerid,"PED","WALK_DRUNK",4.0,1,1,1,1,0);
}
case 9:
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMOKE_CIGGY);
}
case 10:
{
ApplyAnimation(playerid,"PAULNMAC", "wank_loop", 1.800001, 1, 0, 0, 1, 600);
}
case 11:
{
ApplyAnimation(playerid,"PED","fucku",4.0,0,0,0,0,0);
}
case 12:
{
ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0);
}
case 13:
{
ApplyAnimation(playerid, "SWEET", "Sweet_injuredloop", 4.0, 1, 0, 0, 0, 0);
}
case 14:
{
ApplyAnimation(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
}
case 15:
{
ApplyAnimation(playerid,"PARK","Tai_Chi_Loop",4.0,1,0,0,0,0);
}
case 16:
{
ApplyAnimation(playerid, "KISSING", "Playa_Kiss_02", 3.0, 1, 0, 1, 1, 0);
}
case 17:
{
ApplyAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
}
}
}
}
}
return 1;
}
Re: Anim won't load/work -
Abagail - 06.12.2014
Where is this located? And what are the integers the case is using for?
Re: Anim won't load/work -
Glossy42O - 06.12.2014
It's located on dialogresponse And i didn't really understand the second question.
Re: Anim won't load/work -
M4D - 06.12.2014
try to apply null animations library that you used on player spawn
For example you used an animation with "BEACH" animlib
On player spawn apply them but put the animname "null"
Example (OnPlayerSpawn):
ApplyAnimation(playerid, "BEACH", "null", 4.1, 1, 1, 1, 1, 1, 1);
Note: for special actions you don't need do it.
If not worked tell me
Good luck
Re: Anim won't load/work -
Glossy42O - 06.12.2014
Didn't work.
Re: Anim won't load/work -
BroZeus - 06.12.2014
Some anims need to be runned twice before they really comes into effect..
Try playing the anims twice which are not working
i mean do like this ->
Go to dialog - click on wave anim
Then again go to dialog without /q - click on wave anim
And then see if it works or not..
Re: Anim won't load/work -
Glossy42O - 06.12.2014
:O
Worked, but how to fix it ?
Re: Anim won't load/work -
M4D - 06.12.2014
My and BroZeus post has same meaning !
For animations you have to apply them twice to work !!
Apply animlib with null animationname on spawn or click on them twice on dialog !!
Both of them just apply animation library and load them !
For fix it Do what i said.
Re: Anim won't load/work -
Glossy42O - 06.12.2014
Sorry for being stupid but
I didn't really understand you.
Re: Anim won't load/work -
M4D - 06.12.2014
for first one that you try to apply an animation for a player it won't apply !
so you have to apply it once and after that if you apply animation it willbe apply and work !
i think its because anim library have to load for player
so we can apply all animations library when player spawn to debug it !
i'll give you example
just add librarys that you used for animations
pawn Код:
public OnPlayerSpawn(playerid)
{
ApplyAnimation(playerid,"BOMBER","null",0.0,0,0,0,0,0);
ApplyAnimation(playerid,"RAPPING","null",0.0,0,0,0,0,0);
ApplyAnimation(playerid,"SHOP","null",0.0,0,0,0,0,0);
ApplyAnimation(playerid,"BEACH","null",0.0,0,0,0,0,0);
ApplyAnimation(playerid,"SMOKING","null",0.0,0,0,0,0,0);
ApplyAnimation(playerid,"FOOD","null",0.0,0,0,0,0,0);
ApplyAnimation(playerid,"ON_LOOKERS","null",0.0,0,0,0,0,0);
ApplyAnimation(playerid,"DEALER","null",0.0,0,0,0,0,0);
ApplyAnimation(playerid,"CRACK","null",0.0,0,0,0,0,0);
ApplyAnimation(playerid,"CARRY","null",0.0,0,0,0,0,0);
ApplyAnimation(playerid,"COP_AMBIENT","null",0.0,0,0,0,0,0);
ApplyAnimation(playerid,"PARK","null",0.0,0,0,0,0,0);
ApplyAnimation(playerid,"INT_HOUSE","null",0.0,0,0,0,0,0);
ApplyAnimation(playerid,"FOOD","null",0.0,0,0,0,0,0);
ApplyAnimation(playerid,"PED","null",0.0,0,0,0,0,0);
return 1;
}