Knuckle Cracker

Creeper World 3 => The Coder's Corner => Topic started by: Zeroster on February 10, 2015, 03:37:31 PM

Title: a little problem
Post by: Zeroster on February 10, 2015, 03:37:31 PM
Hello guys.

some time ago i started learning crpl and started creating maps but now i have a problem.
i want to make crpl emitters (just simple emitters) that must be destroyed with beams. but when i do that their hitpoints go down i 1second and thats to fast. so i want to raise their hitpoints but i don't know how so can somebody help me with this please?

Regards Zeroster (me ^^)
Title: Re: a little problem
Post by: Hubs on February 10, 2015, 04:10:08 PM
You probably want to use SetUnitAttribute (http://knucklecracker.com/wiki/doku.php?id=crpl:docs:setunitattribute). Look under GetUnitAttribute (http://knucklecracker.com/wiki/doku.php?id=crpl:docs:getunitattribute#unit_constants) for a list of the unit attributes. I think you'll want to change CONST_HEALTH and CONST_MAXHEALTH.
Title: Re: a little problem
Post by: Zeroster on February 11, 2015, 01:05:02 AM
oke finished it thank you very much