Building block reference list  Tips and issues

attack

condition:

In the player's case this reaction is called when keySPACE is pressed. If an opponent is hostile it will atomatically call this reaction when a player or allied or neutral opponent is whitin it's hitRange and within it's hitAngle.

action:

The reaction will make the player or opponent attack. When the player or an opponent attacks it will hit only one other building block at the same time. The building block that will be hit is the building block that is in range and the building block that is located at the smallest angle from the player or opponent. The attackdamage done will be the attack power of the attacker minus the defence of the target wich will be substracted from the target's life.