OnlyRealNubs Posted April 12 Share Posted April 12 I am making a script that plays an animation on all the peds in the game. I have tried all the flags, but the player always loses control. Here is my animation code: for (Ped p : GetAllPeds()) { TASK_PLAY_ANIM(p, animDict.c_str(), animName.c_str(), 8.0, 8.0, -1, 32, 0, false, false, false); SET_PED_KEEP_TASK(p, true); SET_BLOCKING_OF_NON_TEMPORARY_EVENTS(p, true); } There is a lot more to the code than this. But this is the code that is called for the animation. Link to comment Share on other sites More sharing options...
Tanjitsu Posted April 17 Share Posted April 17 (edited) for (Ped p : GetAllPeds()) { if (p == null || p.IsPlayer) continue; Edited April 17 by Tanjitsu Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now