burgelkat Posted October 30, 2017 Share Posted October 30, 2017 Hi, i hope someone can this explain to me. i would like to set the target with a script after a "alarm" turn on. The soldiers keep watch outside the building. so i put this into the script "SolderAI". function Script:Alarm()--in self:SetTarget(player) end Now if the alarm turn on the soldier (merc) run into the building (so far so good) but now if they "see" me the game crashes (no error). If i hide myself in a room and the soldier find me then the game crashes if they try to hit me. what i do here wrong? and how can i set the target in a script. thanks for your help Quote Link to comment Share on other sites More sharing options...
burgelkat Posted October 30, 2017 Author Share Posted October 30, 2017 function Script:Alarm()--in target=player self:SetTarget(target) end 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.