OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: DirTyDeeDs on 10 Oct 2002, 14:42:13

Title: help please
Post by: DirTyDeeDs on 10 Oct 2002, 14:42:13
i need to make the DEAD BODIES FADE away so theres no lag.
   can someone point me in the right direction to find this info.
             many thx   [DirTyDeeDs]-TNT-KMI   Kool Maps Inc.
Title: Re:help please
Post by: Tomb on 10 Oct 2002, 15:08:41
Lag  ??? like in lagerbeer  :o ;D or ... hmm, ya wanna delete the dead right away?!
Is that it? If so, just use the setpos command to put them underground instantly. :)
Title: Re:help please
Post by: Chris Death on 10 Oct 2002, 15:58:09
Or use the
Code: [Select]
deleteVehicle unitname command,
so that they really aren't anymore present.

~S~ CD
Title: Re:help please
Post by: macguba on 10 Oct 2002, 16:00:09
not a direct answer but some general lag tips I posted before .... of course the best answer is to use createVehicle and deleteVehicle.


- with careful positioning and playtesting you can often significantly reduce the number of units you need.    Also you can use fewer units with higher skill.

- waypoints slow things down, so only have ones you really need

- triggers also.  A trigger has to run all the time so use scripts whenever you can - they only run when you tell them to.    Use logic to reduce the number of triggers you need

- aircraft are real a real problem

- vehicles are next:  have as few types as possible ie if there are no US helicopters don't have 2 shilkas and 2 bmps defending the base, just have 4 bmps.

- lag is worst when there are lots of units close to the player.  It's not so bad if they are far away

- it may help if you group static objects (tents, sandbags), not sure

- be pedantic about turning off background programmes (task scheduler, antivirus etc) ... but make sure you remember to turn them back on again later

- reboot before playing
Title: Re:help please
Post by: Tomb on 10 Oct 2002, 16:05:34
yeah, I recall some ">DeleteVehicle _X" trigger .... but can I recite it  ??? ( ::) )

uuum,  ( * ... * ) blank. well, anyho' Yer supposed to put a condition of some sort
and then all dead stuff will get deleted.

The activ. field must read :

"DeleteVehicle _x" Foreach ThisList

If its just a sweep trigger to spare the cpu or alike, just let it fire with a delay,
and let it cover the (now old and abandoned) battlefield.  :)

----------------

woops* seems I wrote this while you were posting, m8  :o ;D