function slenderman_init_name(e,name)
weapon_name[e] = name
Hide(e)
CollisionOff(e)
end
function slenderman_main(e)
if g_Entity[e]['activated'] == 1 then
CollisionOn(e)
CharacterControlUnarmed(e)
SetCharacterToRun(e)
LoopSound(e,1)
AIEntityGoToPosition(g_Entity[e]['obj'],g_PlayerPosX,g_PlayerPosZ)
if GetPlayerDistance(e) < 100 then
StopSound(e,1)
HurtPlayer(e,1)
end
end
end
function slenderman_exit(e)
StopSound(e,1)
end
So i used this smallg's amazing script and just added sound that loops when the enemy character is chasing you,
(this script creates slenderman kind of enemy who appears and dissappears on triggers)
But as you see i used stopsound, but the sound keeps looping still... so i need help with this, how i make the looping suspense music to stop?
Thanks!
))
ps. i dont know if this is right place for this, but i didnt find better board
Intel Core i5 6600K @ 3.50GHz ¨ 16,0Gt dual channel RAM @ 1334MHz ¨¨ 2048MtNVIDIA GeForce GTX 1060 6GB ¨¨ 465GB Samsung SSD 750 EVO 500GB (SSD) ¨¨ Windows 10 Home 64-bit