{"action":"created","issue":{"url":"https://api.github.com/repos/ziggi/FCNPC/issues/32","repository_url":"https://api.github.com/repos/ziggi/FCNPC","labels_url":"https://api.github.com/repos/ziggi/FCNPC/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/ziggi/FCNPC/issues/32/comments","events_url":"https://api.github.com/repos/ziggi/FCNPC/issues/32/events","html_url":"https://github.com/ziggi/FCNPC/issues/32","id":197351986,"number":32,"title":"SetAnimationByName does not work","user":{"login":"zeelorenc","id":4084891,"avatar_url":"https://avatars.githubusercontent.com/u/4084891?v=3","gravatar_id":"","url":"https://api.github.com/users/zeelorenc","html_url":"https://github.com/zeelorenc","followers_url":"https://api.github.com/users/zeelorenc/followers","following_url":"https://api.github.com/users/zeelorenc/following{/other_user}","gists_url":"https://api.github.com/users/zeelorenc/gists{/gist_id}","starred_url":"https://api.github.com/users/zeelorenc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeelorenc/subscriptions","organizations_url":"https://api.github.com/users/zeelorenc/orgs","repos_url":"https://api.github.com/users/zeelorenc/repos","events_url":"https://api.github.com/users/zeelorenc/events{/privacy}","received_events_url":"https://api.github.com/users/zeelorenc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-23T11:10:08Z","updated_at":"2016-12-23T18:32:22Z","closed_at":null,"body":"I have put one NPC inside interior. When I enter the interior, the animation is not synced!\r\n\r\n```pawn\r\npublic FCNPC_OnSpawn( npcid )\r\n{\r\n    FCNPC_ApplyAnimation( npcid, \"GANGS\", \"null\", 0.0, 0, 0, 0, 0, 0 ); // preload\r\n    FCNPC_ApplyAnimation( npcid, \"GANGS\", \"leanIDLE\", 3.0, 0, 1, 1, 1, 0 );\r\n    FCNPC_SetAnimationByName( npcid, \"GANGS:leanIDLE\", 3.0, 0, 1, 1, 1, 0 );\r\n    return 1;\r\n}\r\n```\r\n\r\nHere's my code. Cheers.\r\n"},"comment":{"url":"https://api.github.com/repos/ziggi/FCNPC/issues/comments/269029026","html_url":"https://github.com/ziggi/FCNPC/issues/32#issuecomment-269029026","issue_url":"https://api.github.com/repos/ziggi/FCNPC/issues/32","id":269029026,"user":{"login":"Crayder","id":9919010,"avatar_url":"https://avatars.githubusercontent.com/u/9919010?v=3","gravatar_id":"","url":"https://api.github.com/users/Crayder","html_url":"https://github.com/Crayder","followers_url":"https://api.github.com/users/Crayder/followers","following_url":"https://api.github.com/users/Crayder/following{/other_user}","gists_url":"https://api.github.com/users/Crayder/gists{/gist_id}","starred_url":"https://api.github.com/users/Crayder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crayder/subscriptions","organizations_url":"https://api.github.com/users/Crayder/orgs","repos_url":"https://api.github.com/users/Crayder/repos","events_url":"https://api.github.com/users/Crayder/events{/privacy}","received_events_url":"https://api.github.com/users/Crayder/received_events","type":"User","site_admin":false},"created_at":"2016-12-23T18:32:22Z","updated_at":"2016-12-23T18:32:22Z","body":"Preloading animations is for the person viewing the animation, not the person doing the animation.\r\n\r\nNo matter what, if an animation is applied to a player/NPC, that player/NPC tells the server it's doing an animation. If any players are around, the server tells them too. When players are told about other players/NPCs doing animation it's played for them on their end. If they don't have it preloaded on THEIR end then it might not play.\r\n\r\nBasically... preloading animations for NPC's is 100% pointless because they are not going to see the animation. You only have to preload animations for people that are going to see the animation."}}
{"actor":{"display_login":"Crayder"}}