Blockland Forums > Modification Help
AIPlayer::setAimLocation inaccuracy
M:
--- Quote from: phflack on October 26, 2010, 08:25:05 PM ---i don't think that would work for small/large players though
--- End quote ---
So you multiply by their Z scale - very simple
MegaScientifical:
No no, it's a special equation if you want to aim it higher from any distance and all. But Truce already told us: getEyePoint.
Bauklotz:
I tried using .getHackPosition(), but it still aims lower and
--- Quote from: Bauklotz on October 26, 2010, 02:58:19 PM ---aims next to the player
--- End quote ---
Current:
--- Code: ---%this.setAimLocation(%this.bb_target.getHackPosition());
--- End code ---
You can see how it actually "aims next to the player" on "Flaw's Testing Server".
EDIT: It actually works when I use this:
--- Code: ---%this.setAimLocation(vectorAdd(%this.bb_target.getMuzzlePoint(0),"0 0 2"));
--- End code ---
Truce:
--- Quote from: Bauklotz on October 27, 2010, 08:32:07 AM ----attempts-
--- End quote ---
--- Quote from: Truce on October 26, 2010, 03:18:33 PM ---at their eye point
--- End quote ---
--- Quote from: Truce on October 26, 2010, 03:18:33 PM ---at their eye point
--- End quote ---
--- Quote from: Truce on October 26, 2010, 03:18:33 PM ---at their eye point
--- End quote ---
.getEyePoint()