TYsiEK 0 Posted December 9, 2002 Hi. I need to write some good condition to work my action. I can't explain this in the perfect english because my english is too bad . I will write some like a this: Condition: if someone from named group (group1) have dammage 0.20 Â (someone, not all, someone) Action: medic_chooper move getpos officerr officer = officerr from group1 Can someone understand my stupid english ? . P.S. I have tried search engine . Share this post Link to post Share on other sites
hoz 0 Posted December 9, 2002 You could do something like this... ver 1.85+ Assuming these are playable players but don't have to be. In each of the players (soldiers) you want to medivac add this... I see some draw backs with this already, it might be better to have the chopper move to a safe area (place a invis H and have the pilot move to the pad). Mulitple hits to the group will cause the chopper havoc, (he won't know where to go after more then 1 hit) easy enough to add some checking for that. this addeventhandler ["hit", {_this exec "hit.sqs"}] ~script~ hit.sqs #start ; Select the Unit _unit = _this select 0 ; check if unit is dead end script if he is ?(_unit !alive) :goto "end" ; send off the medivac pilot moveindriver chopper pilotgp move (getpos _unit) ;give him some time to get there ~50 ; force him to land chopper land "get in" pilotgp move (getpos hospital) ; give him some to get back chopper land "get out" #end exit Don't know if thats what you wanted Hoz Share this post Link to post Share on other sites