Scripts affecting custom player classes

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 a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Scripts affecting custom player classes

Re: Scripts affecting custom player classes

by Grey-Wolf » Wed Feb 13, 2019 1:19 pm

Actually, I solved it like this:

if(GetPlayerInfo(PlayerNumber(), PLAYERINFO_PLAYERCLASS) == 4)
{

By the way this was an old question, didn't really want to put anyone's attentiont to this right now. :-(

Re: Scripts affecting custom player classes

by Blue Shadow » Wed Feb 13, 2019 12:45 pm

If we're talking about ACS, then you want [wiki]CheckActorClass[/wiki].

Re: Scripts affecting custom player classes

by Grey-Wolf » Wed Feb 13, 2019 12:26 pm

Check class only lets me check if the class is valid, how do I actually check if the player is currently using a specific class?

Re: Scripts affecting custom player classes

by m8f » Wed Feb 13, 2019 2:03 am

ACS: ClearInventory + CheckClass.

ZScript: this + operator A is "B"

Edit: ACS is wrong! To get player's class, use https://zdoom.org/wiki/GetActorClass

Scripts affecting custom player classes

by Grey-Wolf » Sun Feb 03, 2019 5:35 pm

How should I do it?

My goal is to create a player class that loses weapons everytime he advances from a map to another

Top