Blockland Forums > Modification Help
AIPlayer::setAimLocation inaccuracy
(1/2) > >>
Bauklotz:
If I use something like %bot.setAimLocation(%bot.target.getPosition()); - the bot aims below the player (lower). If I vectorAdd like "0 0 3" to the target's position, it doesnt aim lower, but it aims next to the player, then. Isn't there a stable way to get it aim exactly on the player? (this happens with setAimObject, too)
Truce:
It's not aiming lower than the player, it's aiming at their position, which is at their feet.
You could try aiming at their eye point and see if that makes it feel a bit more accurate.
Chrono:
Or .getHackPosition()
Loki:
%player.getHackPosition() returns the center of a player's collision/bounding box. Then I suppose you can do some simple vectorAdd's if you want them to shoot at the head or not.
phflack:

--- Quote from: Loki on October 26, 2010, 03:58:06 PM ---%player.getHackPosition() returns the center of a player's collision/bounding box. Then I suppose you can do some simple vectorAdd's if you want them to shoot at the head or not.

--- End quote ---
i don't think that would work for small/large players though
Navigation
Message Index
Next page

Go to full version