wmortal is a console command if you type wmortal, dist will be 0.0 if you type wmortal(123), dist will be 123.0
don't care about < 0 for console command !dist - if you mean some kind of "null check, to not crash the game" then no need, in Witcher Script float is a float, not null, not undefined, not None
EDIT: reminded me to delete testing code from the mod :D
7 comments
your fixes are very welcome
have a question to this one
in mortal_wraiths.ws:
wouldn't it be better to replace
if (dist == 0.0)
with
if( !dist || dist <= 0)
maybe it's an overkill...
if you type wmortal, dist will be 0.0
if you type wmortal(123), dist will be 123.0
don't care about < 0 for console command
!dist - if you mean some kind of "null check, to not crash the game" then no need, in Witcher Script float is a float, not null, not undefined, not None
EDIT: reminded me to delete testing code from the mod :D
Those wraiths were added in Next-Gen version