View Full Version : Max sprites
jimbob
09-16-2002, 06:29 AM
is there anyway to set a max to a certain user actor so there can be only a given number of em like buletholes (for eduke)
The_Shadow
09-16-2002, 11:41 PM
Make a global variable, lets say 'maxbulletholes', initialized to Zero.
Make it so every time one of these actors is initialized, add one to maxbulletholes
Have a block of code when using the killit command for the actor, and before the killit command, subtract one from the gamevar, then killit.
The hard part is to make it so that when maxbulletholes is reached, it starts removing them. I'm no longer accustomed to Eduke itself, in fact until recently, I hadn't even looked at it since about 3 months after 2.0, But I've got a feeling that this may need to be done per actor, rather than having a function do it for you. (I think the only available functions are actor and event, and these seem unsuitable for the job.)
jimbob
09-17-2002, 08:52 AM
i`ll try it but im not an eduke programmer
im only comfortable with normal duke3d code
i can make new actors stay a given period of time but sometimes its just not enough
i had a eduke confaq but it corupted images/icons/frown.gif
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.