Jump to content
Sign in to follow this  
Bagel

Dead bodies and lag

Recommended Posts

I was informed that in single player missions dead bodies are not removed from play, but remain on the battlefield and as a result add to a possible lag problem should the mission be an extended one.

Is this true ?

If it is so, could someone please point me to a script that would remove dead bodies from play.

Bagel

Share this post


Link to post
Share on other sites

Do they lag? Not if you put lye [white powder] on top of them and put 'em in a big pile! LOL. Just kidding. I don't think its lagged some of my battles in the slightest. smile.gif

Share this post


Link to post
Share on other sites

Could someone please confirm this for me .

Thanks

Bagel

Share this post


Link to post
Share on other sites

It is quite certainly true:

;; clearcorpse.sqs

?(!local server):exit

gamestatus = "RUNNING"

_n=-1

#loop

?(count (list EVERYUNIT) < 2):goto "loop"

_curlist = list EVERYUNIT

#loop2

_n = _n + 1

?(!alive (_curlist select _n)): [(_curlist select _n)] exec "delbody.sqs"

?(_n < (count _curlist)):goto "loop2"

_n=0

?(gamestatus != "FINISHED"): goto "loop"

exit

and

;; delbody.sqs

_u = _this select 0

~180

_u setpos [0,0,99999]

deletevehicle _u

exit

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×