Morticus 0 Posted July 23, 2007 I need a little help with something i am sure you people will find very easy. I need to create a couple of helis that appear on heli pads, I can create units etc ok but i can not figure out how to place it on the pad. I can do this with a marker like below _MH6 = "MH6" createVehicle (getMarkerpos "pad1") But i do not want to use makers i just wanted it on the heli pad called "Wpad1" what do i have to do for this please. Share this post Link to post Share on other sites
norrin 9 Posted July 23, 2007 Try _MH6 = "MH6" createVehicle (getPos Wpad1) Share this post Link to post Share on other sites
Morticus 0 Posted July 24, 2007 Thanks I knew it was simple, i was trying to make  it more complicated than what it was also I made the mistake in using the Wpad1 in quotes. Now Another easy one I hope.  I need to spawn a heli copter full of men at a maker "supplies" the helicopter then needs to fly you the player and drop in a load of AI's that will guard point near the player ie a object name "s1guard" how would i do this in a script?  I can do this ok in the editor but i need the heli only to appear and drop off men then fly back and disapear again. Any ideas please how to start?  Also if i have 3 objectives how can i make the script know after dropping off the men to make the men move to the correct place? example Person takes a hill, heli drops of men to guard Hill1 then player takes hill2, heli drops of men to guard hill2 and so on? Share this post Link to post Share on other sites
Taurus 20 Posted July 24, 2007 Any ideas please how to start? Your journey begins here. http://community.bistudio.com/wiki/Category:Scripting_Commands_ArmA However if you step beyond this line your sanity may be affected. As you already know how to spawn stuff. You'll need moveInCargo doMove Action eject. And now the "fun" part begins, what to have server side, what needs to be on the clients and etc. Share this post Link to post Share on other sites
Morticus 0 Posted July 25, 2007 ok so this is what i have done so far but what am i doing wrong? <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">; create maker at player position _dropoff = createmaker [position player] ; create helicopter _UH60 = "UH60MG" create Vehicle (getpos startw) ; create Crew _pilot = "soldierWPilot" createunit [(getpos startw) ,group gw5, (gw5=group this),0.95] _gunner = "Soldierwcrew" createunit [(getpos startw) ,group gw5, (gw5=group this),0.95] _gunner1 = "soldierwcrew" createunit [(getpos startw) ,group gw5, (gw5=group this),0.95] ;set positions _UH60 flyinheight 100 _transport1 setfuel 1 _pilot moveInDriver _UH60 ~0.1 @ unitready _pilot ~1 _gun1 moveinTurret [_UH60,[0]] ~1 _gun2 moveinTurret [_UH60,[1]] ; move to player _tansport1 domove getmarkerpos _dropoff I would like to make the helicopter appear and fly to the player then i would like it to drop a load of kit via parashoot is this possible please help, the above script is not working either  PS this is for multiplayer Share this post Link to post Share on other sites