DoOnce

From NWN Lexicon
Jump to navigationJump to search



DoOnce()

Determines whether a something has been done before.

int DoOnce();

Description

Returns TRUE if a local variable (NW_L_DOONCE999) is not set and sets that variable, and returns FALSE if that variable is set.



Remarks

This function will return TRUE once only for that object that called (it sets the local variable on OBJECT_SELF).

This function will fail easily if used in a general. Recommendation: DO NOT USE.


Requirements

#include " nw_i0_plot "

Version

1.22

See Also



 author: Tom Cassiotis