Major Cooke wrote:Quick note about properties, you can only use int, double, bool, class<name>, strings and names. I haven't had any luck using vectors.
State labels also do not work, but i think this has been covered in another thread
Moderator: GZDoom Developers
Major Cooke wrote:Quick note about properties, you can only use int, double, bool, class<name>, strings and names. I haven't had any luck using vectors.
Major Cooke wrote:Maps? Huh, what will those do?
Rip and Tear wrote:Have you considered breaking this up into multiple pages?
ZScript Language Documentation wrote:Called when the object is collected by the garbage collector. Not deterministic.
- OnDestroy
Player701 wrote:ZScript Language Documentation wrote:Called when the object is collected by the garbage collector. Not deterministic.
- OnDestroy
This probably needs to be clarified. According to the source code, an object is first destroyed, and then GC'd. OnDestroy is called during the former, not the latter. Non-deterministic behavior is possible only for non-Thinker objects, since thinkers are normally destroyed outside of the GC routine. There is even a comment about this in dobjgc.cpp. If OnDestroy acted non-deterministically for thinkers (and hence actors), it would quickly lead to desyncs in network games.
Player701 wrote:The description of GetDefaultByType should probably be expanded with a warning: instances returned by this function cannot be serialized in saved games. (See this discussion, apparently the current behavior can't be changed at the moment)
Marrub wrote:Thanks, rewrote the description. Apparently I wrote the description before I knew what PClass was, so now it actually tells you properly what it does.
Users browsing this forum: No registered users and 2 guests