Thing_Damage w/ Negative value to heal?
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Umm, RTFW?
- TheDarkArchon
- Posts: 7656
- Joined: Sat Aug 07, 2004 5:14 am
- Location: Some cold place
- Cutmanmike
- Posts: 11354
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom
- Contact:
- Macil
- Posts: 2529
- Joined: Mon Mar 22, 2004 7:00 pm
- Preferred Pronouns: He/Him
- Location: California, USA. Previously known as "Agent ME".
- Contact:
Sorry, but i had 30 seconds to make this topic.
My request is, i'm making a level with teammate marines (with the sprites of those skins that show what skin you have and a special one in a tank from duke3d; you can email me if you want it) and i want to give them a 50 health boost halfway in the level, BUT the stupid healThing() command doesnt have a tid arg, so i get a wild idea to Thing_Damage w/ negative damage amount to heal.
My request is, i'm making a level with teammate marines (with the sprites of those skins that show what skin you have and a special one in a tank from duke3d; you can email me if you want it) and i want to give them a 50 health boost halfway in the level, BUT the stupid healThing() command doesnt have a tid arg, so i get a wild idea to Thing_Damage w/ negative damage amount to heal.
This should work:
where marineTID is the marine's TID and x is the health boost you want to give. I don't know how this would work on multiple actors though.
Code: Select all
setActorProperty(marineTID, APROP_Health, getActorProperty(marineTID, APROP_Health) + x);- TheDarkArchon
- Posts: 7656
- Joined: Sat Aug 07, 2004 5:14 am
- Location: Some cold place