IntValue()
From ElectronicWar
| Function information for intValue() | |
| Function | intValue() |
| Parameters | intValue( float value ) |
| API | All |
| Cost | $0 |
| Level | N/A |
| CPU Usage | 0 |
| Description | Returns an integer of the value that was input. |
[edit] Attack Script Example
int porthealth = intValue(getHP()) if(porthealth < 10){ cancelAttack(); }
If this was placed in the continue event of an attack script it would cancel the attack if the port's HP ever fell below 10. intValue() will ensure that the port health is never a float value.

