diff --git a/wadsrc/static/zscript/actors/actor.zs b/wadsrc/static/zscript/actors/actor.zs index 56fa7ad10..a2e587cd8 100644 --- a/wadsrc/static/zscript/actors/actor.zs +++ b/wadsrc/static/zscript/actors/actor.zs @@ -73,7 +73,7 @@ class ViewPosition native native readonly int Flags; } -class Behavior native play abstract +class Behavior native play abstract version("4.15") { native readonly Actor Owner; native readonly LevelLocals Level; @@ -84,7 +84,7 @@ class Behavior native play abstract virtual void Tick() {} } -class BehaviorIterator native abstract final +class BehaviorIterator native abstract final version("4.15") { native static BehaviorIterator CreateFrom(Actor mobj, class type = null); native static BehaviorIterator Create(class type = null, class ownerType = null); @@ -519,12 +519,12 @@ class Actor : Thinker native return sin(fb * (180./32)) * 8; } - native clearscope Behavior FindBehavior(class type) const; - native bool RemoveBehavior(class type); - native Behavior AddBehavior(class type); - native void TickBehaviors(); - native void ClearBehaviors(class type = null); - native void MoveBehaviors(Actor from); + native version("4.15") clearscope Behavior FindBehavior(class type) const; + native version("4.15") bool RemoveBehavior(class type); + native version("4.15") Behavior AddBehavior(class type); + native version("4.15") void TickBehaviors(); + native version("4.15") void ClearBehaviors(class type = null); + native version("4.15") void MoveBehaviors(Actor from); native clearscope bool isFrozen() const; virtual native void BeginPlay();