Jump to content

[solved] Problem with SoldierAI and Set Target


burgelkat
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...