1.Is there any way to count number of monsters/players on map(not to count dead).I heard about ThingCount but in this one you need to enter all types of monsters which can be a long time if map has alot of monsters.I was remembered thats in doom after each level you see how much monsters remain so i thought there must be some function.
2.How to loop script(To make it activate each tic or second.)?
ACS Question
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.
- Remmirath
- Posts: 2562
- Joined: Sun Dec 23, 2007 3:53 am
- Graphics Processor: nVidia with Vulkan support
- Location: My house
- Contact:
Re: ACS Question
About the point 2, use restart; at the end of the script.
Re: ACS Question
Just like Loop in DECORATE, ok.Thanks for fast reply 

Re: ACS Question
[wiki]GetLevelInfo[/wiki] can tell you how many monsters there are total and how many have been killed. Extrapolating from that, it's easy to get the monster remaining count using basic math:Chronos wrote:1.Is there any way to count number of monsters/players on map(not to count dead).I heard about ThingCount but in this one you need to enter all types of monsters which can be a long time if map has alot of monsters.I was remembered thats in doom after each level you see how much monsters remain so i thought there must be some function.
Code: Select all
int MonstersLeft = GetLevelInfo (LEVELINFO_TOTAL_MONSTERS) - GetLevelInfo (LEVELINFO_KILLED_MONSTERS);
Re: ACS Question
Oh thanks alot.