Home   Help Search Login Register  

Author Topic: Deleteing Dead Squads  (Read 814 times)

0 Members and 1 Guest are viewing this topic.

Mike

  • Guest
Deleteing Dead Squads
« on: 16 Feb 2003, 05:14:25 »
I create my squad then make it move somewhere.. now when they all die I want to delete the dead bodys or atleast move them out of map. How would I do that?


this is what I used to make the spawned infantry group move:

MyNewSquad5 = NewSquad
_leader = NewSquad select 0
group _leader move getpos D3

I can execute a script for this specific unit:

MyNewSquad5 = NewSquad
_leader = NewSquad select 0
group _leader move getpos D3
[_leader] exec "deletecheck.sqs"

now in delete check I know most of what I would need to do but not all.


Code:

_group = _this select 0

#startcheck
? !alive _group : Goto "deleteunits"
~1
Goto "startcheck"

#deleteunits
~40
"deleteVehicle _x" foreach _group
Exit

Would that work for the groups?
« Last Edit: 16 Feb 2003, 05:16:19 by Mike »

mcnils

  • Guest
Re:Deleteing Dead Squads
« Reply #1 on: 16 Feb 2003, 08:39:32 »

Delete or move them out of the map? err, sorry im not gonna answer to your question but..
..im wondering why you want to cut off such a nice feature from OFP lol
(dead body's on the ground make much atmosphere lol).


For your script... why you ask if this works? try it yourself!! lol
and if i remember right, OFP has already an automated feature witch deletes "surplus dead body's" in MP.


hum i wasnt very helpfull to ya wasnt i? lolz  ::)
« Last Edit: 16 Feb 2003, 08:44:51 by mcnils »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Deleteing Dead Squads
« Reply #2 on: 16 Feb 2003, 10:50:04 »
There's an entire tutorial on this in the Ed Depot ... In Enhancing your mission somewhere
Plenty of reviewed ArmA missions for you to play

CrashnBurn

  • Guest
Re:Deleteing Dead Squads
« Reply #3 on: 16 Feb 2003, 19:55:11 »
try this in your delete script. Call it with groupname instead of leadername. [groupname] exec "deletecheck.sqs"

_group = _this select 0
_units = units _group

#loop
?(("Alive _x" count _units) == 0): goto "remove"
~random(5) + 5
goto "loop"

#remove

~40
"deletevehicle _x" foreach _units

exit

Mike

  • Guest
Re:Deleteing Dead Squads
« Reply #4 on: 17 Feb 2003, 21:42:53 »

Delete or move them out of the map? err, sorry im not gonna answer to your question but..
..im wondering why you want to cut off such a nice feature from OFP lol
(dead body's on the ground make much atmosphere lol).


For your script... why you ask if this works? try it yourself!! lol
and if i remember right, OFP has already an automated feature witch deletes "surplus dead body's" in MP.


hum i wasnt very helpfull to ya wasnt i? lolz  ::)

Massive piles of bodies = lag.  Helpfull? not a bit

Mike

  • Guest
Re:Deleteing Dead Squads
« Reply #5 on: 17 Feb 2003, 21:43:48 »
try this in your delete script. Call it with groupname instead of leadername. [groupname] exec "deletecheck.sqs"

_group = _this select 0
_units = units _group

#loop
?(("Alive _x" count _units) == 0): goto "remove"
~random(5) + 5
goto "loop"

#remove

~40
"deletevehicle _x" foreach _units

exit


Thanks!  :cheers: