This post has been marked by the post author as the answer.
Hi I try to use a script for display image in the zone,
its works but drop the FPS and rise the AI to the max, I can't find the reason
any advice?
-- displays an image in zone
-- loops a sound in zone
-- persistent script
function pic1_init(e)
LoadImages("pic1",0)
function pic1_main(e)
if g_Entity[e]['plrinzone']==1 then
ActivateIfUsed(e)
LoadImages("pic1",0)
SetImagePosition(50,50)
ShowImage(0)
LoopSound(e,0)
else
HideImage(0)
StopSound(e,0)
end
end
end
Thanks
The author of this post has marked a post as an answer.
Go to answer