View Full Version : Check if creature is shootable
Chiitus
09-27-2016, 05:38 PM
Hello guys,
Is there a way using Creature.iXXXXXX, to know if the creature is shootable?
Thanks adv.
shadowart
09-27-2016, 11:24 PM
Nope.
Chiitus
09-28-2016, 03:25 PM
Nope.
You think its possible to do such a function with a loop checking if the tile isWalkable?
Will not be 100% functional because some walls that still shootable, but will work, will not?
I'm thinking making a math function checking the way into the dest position, and checking every tile walkable, if all yes return 1, else 0.
I will do it ShadowArt and post results here.
Thanks adv.
Trykon
09-28-2016, 03:28 PM
There is no such a function although you are welcome to write one... just mind that it might work too slow for high speed evaluating needed for bot on hunting ground
shadowart
09-28-2016, 03:29 PM
You can get pretty good results that way yes. Just remember that creatures aren't walkable, so if you first identify all unwalkable tiles, you later have to remove the tiles that are actually occupied by creatures.
Chiitus
09-28-2016, 06:00 PM
There is no such a function although you are welcome to write one... just mind that it might work too slow for high speed evaluating needed for bot on hunting ground
Yes, its true. Maybe because LUA?
You can get pretty good results that way yes. Just remember that creatures aren't walkable, so if you first identify all unwalkable tiles, you later have to remove the tiles that are actually occupied by creatures.
Oh, nice info.
I will do first to know if my party members(MC BOTS) is in vision (shootable) to SIO ME. Modify to any reason after (target etc.) will not be a problem.
Thanks XenoTeam for this amazing BOT.
Function incoming!!
EDIT: Just for count i not give up :)
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.