From a1d632df05c6aadf6803442da767f6f298719b2e Mon Sep 17 00:00:00 2001 From: Blixibon Date: Sat, 30 Jul 2022 13:00:40 -0500 Subject: [PATCH] Added logic_substring --- base.fgd | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/base.fgd b/base.fgd index 23df14e..6c7ccb8 100644 --- a/base.fgd +++ b/base.fgd @@ -6568,6 +6568,25 @@ output OnFire(ehandle) : "Fires each time a projectile is fired, passing the projectile as the activator. The owner entity is the caller if it exists." ] +@PointClass base(Targetname) iconsprite("editor/logic_substring.vmt") = logic_substring : "Returns substring of a string parameter" +[ + spawnflags(Flags) = + [ + 1 : "[1] Start Disabled" : 0 + ] + + startPos(integer) : "Substring start position" : 0 : "Position of the first character to be copied as a substring" + length(integer) : "Substring length" : -1 : "Number of characters to include in the substring (-1 = until end of string)" + + input Disable(void) : "Disable entity functions." + input Enable(void) : "Enable entity functions." + input InValue(string) : "Input a string to substring and return through OutValue" + input SetLength(integer) : "Set length of substring" + input SetStartPos(integer) : "Set start position of substring" + + output OutValue(string) : "Output substring from InValue" +] + //------------------------------------------------------------------------- //