Assert (script event)

From modwiki

Jump to: navigation, search

Description

Breaks if the condition is zero in debug builds.

Usage

In your script type...

void assert( float condition )

Parameters

  • [condition] - value to evaluate to determine if a break is nessecary.

Examples

 
sys.assert(count);

Notes

This script event does not return any values.


Personal tools
Main