Hey guys,
I wanted to make a spell that would be cast and then hit the ground. A bit like Zulrah has.
Now I've created this:
Code:
Position targetPosition = new Position(x. y);
victim.getPacketSender().sendProjectile(p.getPosition(), targetPosition, 0, 40, 500, 63, 0, 0,0);
The problem is that when the projectile doesn't have an index to go toward, the projectile just shoots to weird angles instead of just towards the position I want it to go.
Here is the projectile code:
Code:
public void sendProjectile() {
if (start.isViewableFrom(player.getPosition())) {
player.getPacketSender().sendProjectile(start, offset, 0,
speed, projectileId, startHeight, endHeight, lockon, delay);
}
}
}
Start and offset are both Positions.
Anyone any clue what is going wrong? I just want the projectile to hit a certain coordinate