Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Other AI Options
Author Message
Ange Offline
Senior Member
****

Posts: 254
Joined: Aug 2009
Post: #6
RE: Other AI Options

The custom monsters don't work because the function IsMonster(id) returns false for them.??My AI works around this by:
1. Checking if the entity in question is a player
2. Checking if the entity in question has a behavior set for it in the config file (I have most custom mobs in there which makes them work fine)
3. If set to strict monster check, it runs IsMonster(id) and will fail to detect custom mobs
OR
If set to loose monster check, it assumes that the entity is a monster (Having ruled out players, the entity is either a monster or pet).??This is useful for ToH, as only monsters and players will be around you.

The best solution is to set a custom behavior for custom monsters so you can detect them without relying on IsMonster(id)


Edit: Thinking more about it, if you do step two before step one, it will be able to handle the warzone mobs also, so long as you add them to the monster array.
(This post was last modified: 10-10-2013 08:26 AM by Ange.)
10-09-2013 01:45 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Other AI Options - Adrillf - 09-16-2013, 09:49 AM
RE: Other AI Options - Fyrus Carmin - 09-17-2013, 11:29 AM
RE:??Other AI Options - Arcona - 09-24-2013, 01:22 PM
RE: ??Other AI Options - Fyrus Carmin - 09-25-2013, 01:42 PM
RE: Other AI Options - Laenaya - 09-17-2013, 05:32 PM
RE: Other AI Options - Ange - 10-09-2013 01:45 PM

Forum Jump: