OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Mike on 11 Sep 2002, 23:58:52

Title: Warping only living units?
Post by: Mike on 11 Sep 2002, 23:58:52
I have the script below that fades out warps the players then fades in again.. How do I make it only warp each living unit?

Code: [Select]
titlecut ["","black out",5]
~6

"_x setpos getpos prison" foreach units group R1
~2

titlecut ["","black in",5]
~5

exit

Unless it allready does.. I haven't checked, but I think it would warp all units no matter what..  ???
Title: Re:Warping only living units?
Post by: _hammy_ on 12 Sep 2002, 01:04:16
i think when a unit dies he is not part of that group anymore, so i think you will be alright
Title: Re:Warping only living units?
Post by: Mike on 12 Sep 2002, 07:47:26
 :cheers: