Quantcast
Channel: ZDoom
Viewing all articles
Browse latest Browse all 3391

Scripting • Re: Type casting null

$
0
0
From my experience type-casting StateLabels doesn't work (my guess it's not supported), so it's better to rewrite that code, to something like this:

Code:

See:VILE AABBCCDDEEFF 2{StateLabel meleelabel = 'Melee', missilelabel = 'Missile';if (CheckLOF(CLOFF_MUSTBESOLID)){meleelabel = missilelabel = null;}A_Chase(meleelabel, missilelabel, CHF_RESURRECT);}Loop;

Statistics: Posted by Blue Shadow — Sat Sep 07, 2024 10:16 pm



Viewing all articles
Browse latest Browse all 3391

Trending Articles