21.03.2009, 20:34
So im working on a aclocolsystem, so i need the "drunk" animation. But the Player should be able to move while playing the anim.
The System works like:
You drink some alcohol, then after a short period of time youll get drunk. There are different types of beeing drunk, first you just walk drunk, then the weather changes to something very strange until you just fall on the ground (didnt found the right anim for that) and your health decreases - the worst case is death. These effects disappear after a while and you behave normal.
Everythign works fine except the anims. I did:
Because you could stop this admin with pressing jumpkey or firekey i use this code every second the player is drunk. But as i said above i want to have an other anim if you are very drunk (fall on ground anim), which isnt really working:
If i use it only once the drunk animation just continues, if i use it every second it works. But then at a certain point every anim should stop, so i used
But nothing happens, it just continues to walk drunk. It doesnt matter if i use the drunk anim once or every second.
Wheres the failure?
The System works like:
You drink some alcohol, then after a short period of time youll get drunk. There are different types of beeing drunk, first you just walk drunk, then the weather changes to something very strange until you just fall on the ground (didnt found the right anim for that) and your health decreases - the worst case is death. These effects disappear after a while and you behave normal.
Everythign works fine except the anims. I did:
Code:
ApplyAnimation(i,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
Code:
ApplyAnimation(i, "WUZI", "CS_Dead_Guy", 4.0, 1, 1, 1, 1, 0); // Wrong anim but i dont find the other one
Code:
ClearAnimations(...);
Wheres the failure?