Page 1 of 1

[DECORATE] (Solved) A_takeinventory health not working?

Posted: Mon May 01, 2017 5:53 pm
by FranckyFox2468
Currently trying to make a weapon where the altfire does twice the regular damage but at the cost of health but a_takeinventory doesn't seem to work on health. If its not the way to make that work then ima need you guys' help. Here's my code:

Code: Select all

  
  AltFire:
	TNT1 A 0 A_PlaysoundEx("Deagle11","Weapon")
    BZDA B 1 bright A_FireBullets (1.5, 1.5, 1, 30, "BulletPuff")
	BZDA C 1 bright A_TakeInventory ("health", 5)
	BZDA DEF 1
	BZDA A 6
    1DE1 B 0 A_ReFire
    Goto Ready

[DECORATE] Re: A_takeinventory health not working?

Posted: Mon May 01, 2017 7:04 pm
by Empyre

[DECORATE] Re: A_takeinventory health not working?

Posted: Mon May 01, 2017 7:07 pm
by FranckyFox2468
Oh well that solves everything, thanks

[DECORATE] Re: A_takeinventory health not working?

Posted: Mon May 01, 2017 7:09 pm
by FranckyFox2468
uh... "Invalid state parameter a_damageself" its not compatible with zandro?

If not what alternatives do i have?

EDIT: A friend found an alternative. A small "DamageThing" script does the work.