I've noticed that characters with certain scripts become inactive beyond 3000 units, even with always active set to 1.
If I try the following script (a basic animation script) with the fantasy winged demon character, it will stop working beyond 3000 units, but with the default ai_demon script it works fine.
function animation_init(e)
end
function animation_main(e)
Prompt(GetPlayerDistance(e))
if g_Entity[e]['animating'] == 0 then
SetAnimationFrames(120,301)
LoopAnimation(e)
g_Entity[e]['animating'] = 1
end
MoveForward(e,0)
end
I thought that adding CharacterControlUnarmed(e) or CharacterControlLimbo(e) would help, but I was wrong. What should I add to the script to solve this issue? It only applies to models where ischaracter is set to 1.