folow player
- LUA Script - precede every function and global member with lowercase name of script
-- init when level first runs
function ai_neutral_init(e)
CharacterControlUnarmed(e)
end
function ai_neutral_main(e)
PlayerDist = GetPlayerDistance(e)
EntObjNo = g_Entity[e]['obj']
if PlayerDist < 2000 then
LookAtPlayer(e)
AIEntityGoToPosition(EntObjNo,g_PlayerPosX,g_PlayerPosZ)
end
if PlayerDist < 300 then
LookAtPlayer(e)
AIEntityStop(EntObjNo)
end
end
who can i find game guru lua specific commands ? or help file ?