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, "Script expected enemy to be in sight." );



Required Args:

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