I want to execute this if-statement once, when true.
public void nd_missil()
{
Player_1 a = (Player_1) getWorld().getObjects(Player_1.class).get(0);
if (a != null && a.get_FD_spist() == 1)
{
getWorld().addObject (new ND(), getX(), getY());
}
}
I've read a little about counters, bot I do not know how to use it.

What you need, I think, is a