player class zscript not working

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

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!)
Post Reply
User avatar
sergeirocks100
Posts: 49
Joined: Wed Mar 25, 2020 9:17 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

player class zscript not working

Post by sergeirocks100 »

for fun, i decided to ahead and continue work on one of my projects, and i decided it would be a good idea to make the Mooman from In Pursuit Of Greed the player character, the problem is, he's really large because the sprites aren't scaled, and the Zscript i wrote to try and fix it isn't working, here's the script:

Code: Select all

ACTOR DoomPlayer2 : DoomPlayer
{
 Default
{
  Speed 1
  Health 100
  Radius 16
  Height 56
  Mass 100
  PainChance 255
  Scale 0.33
  }
}
thanks in advance to anybody who can help me with my trouble
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Re: player class zscript not working

Post by wildweasel »

In zscript, actor classes begin with the "class" keyword, not "ACTOR". Everything else should be okay, I think.
User avatar
sergeirocks100
Posts: 49
Joined: Wed Mar 25, 2020 9:17 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: player class zscript not working

Post by sergeirocks100 »

i realized right after i submitted this post that i forgot to define any sort of playerclasses in the MAPINFO, i went ahead and did that and everything worked perfectly, but thanks anyway
Post Reply

Return to “Scripting”