Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
natanbrody

ArmA 2 OA Editor - Help - Empty Planes And Vehicles Not Spawning?!

Recommended Posts

Hey guys I am trying to place some planes and vehicles inside a hangar but the planes and vehicles are not spawning if I use the "Empty" section in the add unit it only spawns them if I use a gamelogic. I found this script : _vehicle = createVehicle ["IAF_F16_CAP", getPos player, [], 20, "CAN_COLLIDE"]; It works great but It spawns the plane next to the player not in the position I wanted it and also I am unable to rotate the plane so that it sits in side the hangar in a certain way... could anybody help me figure out whats wrong??

Thanks in advance

Natan Brody

Share this post


Link to post
Share on other sites

Well, "getpos player" essentially tells the script to spawn it ontop of the player. Use a marker to mark the position of the hangar, and find out the proper direction by looking at your compass ingame. Then use (getmarkerpos "markerName") to get the plane to spawn there, and use setDir yourDirection (as a number), after you've spawned the plane, to get it in the right direction.

Share this post


Link to post
Share on other sites

Unfortunately it has not worked... the plane is still nowhere to be seen. Here is the script I used : _vehicle = createVehicle ["IAF_F16_CAP", getMarkerPos "m1", [], 0, "NONE"]; And I wrote this in the init of a gamelogic

Share this post


Link to post
Share on other sites

Yes I know I have tried adding the "EMPTY" object but they don't show up in game I can see them in the editor screen but when I go in game They are not there

Share this post


Link to post
Share on other sites

none of the vehicles and planes are appearing, but they appear when I use the code in the gamelogic, I just don't know how I can rotate them. And I am using this template I downloaded from armaholic:http://www.armaholic.com/page.php?id=13430 and I have placed the Airbase on the edge of the map where there is no grass or buildings so could that be the problem

Edited by NatanBrody

Share this post


Link to post
Share on other sites

I have placed some vehicles in the centre of the map to see if they would spawn but they did not spawn, Could someone possibly write me a script that I can put into a gamelogic that would spawn a plane at the gamelogics location and let's me rotate the planeto whatever direction I want it

Share this post


Link to post
Share on other sites

Maybe it is the template you are using. Just because it is on armaholic does not mean it has no bugs or a completed working script. Try to spawn something without the template.

Share this post


Link to post
Share on other sites

It is because of the template I'm using so the only way it will work is with a script that someone could make for me because I suck at scripting

Share this post


Link to post
Share on other sites

To see if the template is broken at all, or if it's your ArmA2 installation, make a new mission in the editor. Place a player unit, and then press F1 again. Scroll down to the EMPTY tab and place a jet of your choice. Don't use game logics. It's not necessary even in your case, as the hangar isn't a sealed off building. Now, if the plane does not appear (take a standard plane, and use a standard island (Takistan for example) for this test), then something is wrong with your ArmA2 installation.

Share this post


Link to post
Share on other sites

It appears to be a problem with the template unfortunately... The vehicles are spawning on other maps without the template so... I would really like to use the Template so Is there any other way to spawn a plane using a script or something And I have copy and pasted all of the objects to another island

Edited by NatanBrody

Share this post


Link to post
Share on other sites

Ok I donwloaded all of the files and then I opened the template and copied and pasted the whole template to another map, Tried to put down some empty planes and they are not showing up

Share this post


Link to post
Share on other sites

Did you get an error at the beginning saying that you were missing 2 files "fgs_rsp6",

"fgs_rsp6_2" Because I downloaded all of the files and I am missing these 2 files. If you have them could you send me them

Share this post


Link to post
Share on other sites
Sign in to follow this  

×