Jump to content

AI Targeting FPSPlayer


SolarFlareHD
 Share

Recommended Posts

Hello i am having troubles getting the prefab "Crawler" to follow/attack the FPSPlayer. I have gotten retaliation to work though such as when you shoot the enemy he will hit you but never looks at you. If someone could help it would be highly appreciated since i am just learning what to do bit by bit Thanks.

Link to comment
Share on other sites

Assuming you have attached the "MonsterAI" script to him there should be a sight range setting. Increasing this will allow the AI to "see" you sooner and as such, if you flee, he will follow you until you are outside this radius.

 

Also make sure you have built the navmesh. With out this, the AI cant move and will react to you if with in range but not move towards you. If you have buildings, bridges and other obstacles, make sure they are ticked as "nav object" in the physics tab prior to building the nav mesh.

 

Dont forget to save, save, save. Saving your work periodically just in case something happens will prevent tantrums, a broken mouse and other tantrums. . . . Ask me how I know. . . . . angry.png

 

Hopefully, this information comes to use to you and you continue to find further success with leadwerks. Aggror has made several Tutorials that have come to be a great foundation in getting started with Leadwerks for myself. Check out his channel here: Aggror's Youtube Channel.

Asus sabertooth 990FX, AMD FX 9590 , Windows 7 Home Premium 64 Bit, 4 HDD's Western Digital Caviar Black set in Raid 0, 16 GB Crucial Ballistix Elite, Asus Radeon R9 270 X 4GB, Corsair CM750M,

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...