hello guys i m a very fresh newbie with script and need help.
I need help with the follower script. how i can make the follower die its game over?
this is the script for the follower
ps:sorry for me bad english
[spoiler]
function follow_player_init(e)
CharacterControlUnarmed(e)
end
function follow_player_main(e)
PlayerDist = GetPlayerDistance(e)
if GetPlayerDistance(e) > 100 then
LookAtPlayer(e)
if GetPlayerDistance(e) < 200 then
SetCharacterToWalk(e)
else
SetCharacterToRun(e)
end
AIEntityGoToPosition(g_Entity[e]['obj'],g_PlayerPosX,g_PlayerPosZ)
else
AIEntityStop(g_Entity[e]['obj'])
StopAnimation(e)
end
end