Notes |
|
(0019495)
|
Korshun
|
2018-09-07 20:50
(edited on: 2018-09-07 20:51) |
|
You are trying to use CheckClass where you should have used CheckInventory
|
|
|
|
In Zdoom/GZDoom it returns 1. According to the wiki, this function should return 1 if the Class is valid/exists, 0 if it doesn't. It doesn't use a TID to check a specific player/thing. 'https://zdoom.org/wiki/CheckClass_(ACS) [^]' |
|
|
(0019498)
|
Ivan
|
2018-09-10 11:07
|
|
Uhh you realize that still isn't the intended use for the CheckClass function right? CheckClass compares the class of the activator vs. what is given as input... None of them can be the player as they are inventory items... Add "CheckClass("PlayerPawn")" in there and it should show you 1. |
|
|
|
Check out the two screencaps one is from Zandro and the other one is from GZDoom. GZDoom returns 1 if the class exists. Zandro returns 0 for all even PlayerPawn. If CheckClass simply compared the activator's class to the the inputted class it would be the same as CheckActorClass using 0 as the TID. |
|
|
(0019503)
|
Edward-san
|
2018-09-10 21:57
(edited on: 2018-09-10 22:00) |
|
Of course it'll always print 0. CheckClass isn't implemented in Zandronum 3.0 at all, anyway.
|
|
|
|
I am sorry for my misleading comments. ZDoom documentation is confusing. You are using CheckClass the right way, but it's not implemented in GZDoom 1.8.6, on which Zandronum 3.1 is based. Unimplemented ACS functions always return 0. |
|