Call of Duty Script Documentation

# assertex( <value>, <message> )

## Module

    Debug

## Summary

    assert that the given statement is correct. The function will throw a script error if this is false, with the given message

## Example

    assertex ( enemyInSight == true, "There is no enemy is sight!!" );

## Minimum Number of arguments: 2

    1 : <value> statement that is asserted to be correct
    2 : <message> error message

## Number of optional arguments: 0

Return to Function List