Hi,
a small thing that's puzzling me: up till now I've used GetSpecies() to return the class name of an actor, but I found out that there's also GetClassName(), however I can't seem to find it in GZDoom.pk3.
My question is: what's the difference and which one is preferred?
[ZScript] GetClassName
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
-
gwHero
- Posts: 360
- Joined: Mon May 08, 2017 3:23 am
- Graphics Processor: Intel with Vulkan/Metal Support
- Location: The Netherlands
-
_mental_
-

- Posts: 3820
- Joined: Sun Aug 07, 2011 4:32 am
Re: [ZScript] GetClassName
GetClassName() is intrinsic function. It works according to its name while purpose of Species is quite different.
-
gwHero
- Posts: 360
- Joined: Mon May 08, 2017 3:23 am
- Graphics Processor: Intel with Vulkan/Metal Support
- Location: The Netherlands
Re: [ZScript] GetClassName
Thanks! That explains a lot. From now on I will use GetClassName() for just getting the name._mental_ wrote:GetClassName() is intrinsic function. It works according to its name while purpose of Species is quite different.