strikerforce 2 Posted April 7, 2013 Hello, I am trying to get a helicopter to spawn with a unit in it. I can get the helicopter to spawn without an issue but when I want the pilot to spawn nothing happens. here is my vehicle spawn script. _crashtemp = createVehicle ["UH1H_DZ",getMarkerPos "spawn",[], 0, "FLY"];blue = creategroup west;_unit = blue createUnit ["Functionary1_EP1", getMarkerPos "spawn", [], 0, "FORM"];_unit moveInDriver _crashtemp;Once again the heli spawns but the pilot doesn't.If you know whats wrong please help me.Thanks! Share this post Link to post Share on other sites
person915 345 Posted April 7, 2013 (edited) the moveInDriver commands and such has to be in your unit's initialization (init) field.The helicopter should not be trying to move the units in. Also, I don't think naming your units unit is a good idea. It confuses me slightly and will to you as well in the future. The best thing to do is either name them and number them based on group, affiliation, or class, else use 'this' instead of a unit name. Keep in mind using 'this' only applies to the specific unit's init field that you are editing, so if you wanted something to interact with the unit, instead of the unit interacting with it (which you want the unit to interact with the helicopter so what I'm about to say is extra) then you need to name the unit, and in the init field of the thing that's interacting with it, you type the unit name followed by the action, or whatever syntax is required. Edited April 7, 2013 by McCullins Share this post Link to post Share on other sites
strikerforce 2 Posted April 7, 2013 (edited) My script works perfectly on just plain old Arma 2, but for some reason DayZ doesn't want it to work. It has to work server side too. Edited April 7, 2013 by strikerforce Share this post Link to post Share on other sites