what if i want zombie pets?
it's pretty simple to get the AI to follow you though
follow_player.lua
function follow_player_init(e)
CharacterControlUnarmed(e)
end
function follow_player_main(e)
LookAtPlayer(e)
if GetPlayerDistance(e) > 200 then
if GetPlayerDistance(e) < 300 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
edit: stopped zombies from trying to attack - guess their animation is hard coded for some reason
nope ai_neutral is just for them to stand and look at you - shop keeper style
life\'s one big game
windows vista ultimate
i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11