Blockland Forums > Suggestions & Requests
Visibility effects how well AI can see you.
Chrono:
Have them look at the player and get the vector pointing to the right or left of the bot. Do this constantly.
MegaScientifical:
--- Quote from: Chrono on May 13, 2010, 05:40:42 PM ---Have them look at the player and get the vector pointing to the right or left of the bot. Do this constantly.
--- End quote ---
Vectors confuse me, that's the main reason my bots don't work perfectly. The most my bots do is calculate distance and stop at 2 spaces away or something. I need the script for that, but you don't need to make it.
Chrono:
A vector is like a direction measured in xyz positioning instead of rotation.
MegaScientifical:
--- Quote from: Chrono on May 13, 2010, 05:50:38 PM ---A vector is like a direction measured in xyz positioning instead of rotation.
--- End quote ---
I know that, I mean I don't understand the commands and such for it. Normalize... I don't even know what that does, what it means to do. All that stuff confuses me, it's too much like homework.
Chrono:
Normalize turns it into a direction that would add up to 1 unit total. This is useful if you want it to always be a certain scale when the distance between the two positions can vary.