Health Regeneration on Non-Player Actors (solved)

Have any questions or problems in making your game, subscribing and/or using our software? Post here.
Forum rules
Make sure you are using the newest version. This can be downloaded at the top of the site via the "downloads" link.

Use a very good subject. "Problem" or "Help" are unacceptable titles.

Use the search feature before posting a question, as the answer is probably already here.

Subscript out of range error 9: This is a generic error, and we'll need way more information than that to figure out the problem. If you get this, strongly consider following the instructions of submitting your project through the Submit Bug feature within the editor.
User avatar
tridecagon
Member
 
Joined: Sat Apr 04, 2015 1:19 am
Location: London, KY

Health Regeneration on Non-Player Actors (solved)

Postby tridecagon » Mon Oct 12, 2015 2:04 pm

I have a map that spawns monsters. I want all of the monsters* to regenerate health at a set interval* using timers. How do I do this? I know I can target the player's health to regenerate; this is part of the game too. I just have no idea how to target arbitrary actors. I want to have enemies health to regenerate at 2pts/second.

*except for a specific monster

*EDIT*
Never mind. Apparently the enemies didn't have a name, so they just didn't display any text in the actor selection box. This led me to believe they didn't exist. They have names now.

*RELATED*
How do I get the current map name? I'm wanting to give the player infinite health on a specific map and was going to edit the "Damaged" script to test if the player is on the specific map and reset their health to max if they are.
*EDIT*
Never mind. I just edited a timer I was planning on deleting that did something similar.

*NOTE*
Using the free version.
I'm not the sharpest fork in the toaster.

Return to Technical Support Questions

Who is online

Users browsing this forum: No registered users

cron