the fire is just particle effects from the burning wreck, they should disappear after a short while.
the fire is just particle effects from the burning wreck, they should disappear after a short while.
My scripts:
Spoiler:
what to do when posting any kind of code dammit!!
Any new mission editor or scripter in Arma2 should have read Mr Murrays Editing Guide Deluxe at least once, it still applies for A2 even though it was made for Armed Assault.
Yes it does, I was just pointing it out so that you know and that if someone needs perfection and doesn't want to see the fire when there is no vehicle there.
-Bigshot
Looks great, thanks for sharing demonized.![]()
Hey Demonized,
Loving this script. However, it only works on all dead objects that are spawned at the start of the mission. Is there a way to add checks in for objects spawned AFTER the mission has started. I'm talking about missions like VTS, where you can spawn objects on the fly.
I CAN get it to work if I manually restart the script again, but it's a little clunky having to call it when EVERY object is spawned.
Here is a thing - IF I have one copy of the script running, and I run another, does it override the original (and restart the counter) ?
thats strange, i had asumed that the VTS would work same way as any other spawned units.
in the demo mission you have a radio trigger where you can spawn a stryker group as many times you like, and they get deleted just as well as others.
Is this an MP issue?
the script rechecks the complete list of dead and every vehicles every 10 seconds.
if you run a paralell script of this, the 1st script will take precedence, and the second timer will simply exit since the object is null.
i dont think it will create any special lag running multiples of this as its small in CPU usage, but if you would run it after any spawns, that would be ridiculus and for sure screw things up with the excluded included parts.
Hmmm will have a look again tonight. So in your mind a single call at the start of a mission will apply to every unit spawned after?
in my mindyes.
the script is not collecting all units at start, it checks the ingame arrays of all vehicles and all dead and if they are meeting the condition and have not been already processed by the script, the script processes them.
then sleeps 10 seconds, and rechecks and so on and so forth..
it also readds respawned units with same name as the dead ones to the check list so they will again get deleted upon meeting the condition.
---------- Post added at 08:43 PM ---------- Previous post was at 08:34 PM ----------
you can verify that its collecting the spawned units by placing this in init.sqf and run your VTS mission and see if numbers change to what you expect.
make sure you have function module placed in editor.
Code:if (isServer) then { _null = [] spawn { waitUntil {!isNil ("BIS_MPF_InitDone")}; while {true} do { _hint = format["all dead units is %1 \n all vehicles is %2",(count allDead),(count vehicles)]; [nil,nil,rHINT,_hint] call RE; sleep 1; }; }; };
Cheers mate .. will try this tonight !
EDIT: Retested again this evening, and it seems that it is working perfectly. I THINK I must have been too close to the dead enemy (I had set it to 300m!) and therefore the script didnt trigger!
Last edited by Kremator; Jul 18 2011 at 20:14.
Release frontpaged on the Armaholic homepage.
Visit Armaholic.com | Visit Carriercommandaholic.com
Public FTP available, just check the Armaholic.com FAQ.