diff --git a/src/thingdef/thingdef_codeptr.cpp b/src/thingdef/thingdef_codeptr.cpp
index 14e4c3377..372622ccf 100644
--- a/src/thingdef/thingdef_codeptr.cpp
+++ b/src/thingdef/thingdef_codeptr.cpp
@@ -4449,3 +4449,17 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_RadiusGive)
 	}
 }
 
+
+//==========================================================================
+//
+// A_SetTics
+//
+//==========================================================================
+
+DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetTics)
+{
+	ACTION_PARAM_START(1);
+	ACTION_PARAM_INT(tics_to_set, 0);
+
+	self->tics = tics_to_set;
+}
\ No newline at end of file
diff --git a/wadsrc/static/actors/actor.txt b/wadsrc/static/actors/actor.txt
index c93b82b0b..6e40b6628 100644
--- a/wadsrc/static/actors/actor.txt
+++ b/wadsrc/static/actors/actor.txt
@@ -290,6 +290,7 @@ ACTOR Actor native //: Thinker
 	action native A_SetUserArray(name varname, int index, int value);
 	action native A_SetSpecial(int spec, int arg0 = 0, int arg1 = 0, int arg2 = 0, int arg3 = 0, int arg4 = 0);
 	action native A_Quake(int intensity, int duration, int damrad, int tremrad, sound sfx = "world/quake");
+	action native A_SetTics(int tics);
 
 	action native A_CheckSightOrRange(float distance, state label);
 
@@ -323,7 +324,3 @@ ACTOR Actor native //: Thinker
 		Stop
 	}
 }
-
-
-
-