Heli lands exactly where smoke's been trowed?, This happens in the 'Squad Leader' tutorial mission. |
Heli lands exactly where smoke's been trowed?, This happens in the 'Squad Leader' tutorial mission. |
Jun 17 2010, 04:24
Post
#1
|
|
Member Group: Members Posts: 131 Joined: 22-May 10 Member No.: 7,651 |
Hallo all!
I'm working in my short Co04 op... for the end i want exactly what happens in the 'squad leader' tutorial for ArmA. There's an already defined chopper in map, and he's asked to come via radio... when the chopper's at a determined distance, the player should pop smoke, until the player hasn't poped it the chopper will just stay hovering 'till the player pops it, and the helo will land exactly where the smoke's been trown. I know a lot about scripting... although i'm not a master at it, i can handle it by myself alone. I've configured lots of scripts, like the Air-Strike that was in Mr. Murray's editing guide (not only FIXED it but also added more things to be more pretty & accurate. I'll post it.), but this script comes from the TOP... so there's nothing i can do about it. I'll leave ya the 2 scripts that form part of that extraction: 1º script, "brief.sqs" (really short part of the script comparing it to the whole script... only the part that includes the helo and on...) CODE @called "6" objStatus "done" ~1 player sideRadio "T03r03" ~6 player sideRadio "T03r04" ~6 instructor2 say "T03v18" evac=true @blackhawk distance instructor2 <250 blackinsight=true instructor say "T03v19" ~1 player addMagazine "smokeshellgreen" player addEventHandler ["fired",{_this exec "smoked.sqs"}] hint localize "STR_T03h10" ~4 instructor2 say "T03v20" @smoked "7" objStatus "done" instructor2 say "T03v21" @ (s1 in blackhawk) && (s2 in blackhawk) && (s3 in blackhawk) &&(s4 in blackhawk) && (s5 in blackhawk) && (player in blackhawk) inblack=true "8" objStatus "done" ~1 cutText ["","black out",5] ~4.5 this exec "outro.sqs" exit 2º script, "smoked.sqs" (entire script) CODE _shell = nearestobject [_this select 0, _this select 4] ~4 heli setpos getpos _shell smoked=true blackhawk land "GetIn" #loop ~2 ?inblack: goto "konec" blackhawk engineOn true goto "loop" #konec exit I'd really appreciate if you could figguer this out and if you do, please, just say what to do Best Best Best Best Best Best Regards, SGJackson! |
|
|
Lo-Fi Version | Time is now: 26th April 2024 - 14:21 |