themrdemonized / STALKER-Anomaly-modded-exes

STALKER Anomaly exe edits with patches by community
125 stars 26 forks source link

How to use SetHitPower(float) function listed in lua_help_ex? #24

Closed Orelarsen closed 1 year ago

Orelarsen commented 1 year ago

When I use it in my script it crashes with message : LUA error: ...anomaly 1.5.2\gamedata\scripts\charge_gauss_rifle.script:34: attempt to call method 'SetHitPower' (a nil value)

Orelarsen commented 1 year ago

Edit: this problem happens with all of these functions

themrdemonized commented 1 year ago

try obj:cast_Weapon():SetHitPower(4.2)

Orelarsen commented 1 year ago

Thanks a million, mister demonized.