Jump to content
Sign in to follow this  
jakeplissken

Spawn APEX object with createsimpleobject.

Recommended Posts

I am using this code to spawn objects.

 

//spawn the excavator.
_posnew17 = getpos oil2;
_sol19 = createSimpleObject ["\A3\Props_F_Exp\Industrial\HeavyEquipment\Excavator_01_abandoned_F.p3d", _posnew17];
_sol19 setPos [_posnew17 select 0, _posnew17 select 1, 1.0];

 

But this does not work with APEX Tanoa objects. But it works perfectly with normal Arma 3 objects like helicopter parts. Is this a DLC restriction? I wanted to spawn the excavator this way. Thanks.

Share this post


Link to post
Share on other sites

It should work:

 

    class Land_Excavator_01_abandoned_F : Wreck_base_F {
        author = "Bohemia Interactive";
        mapSize = 11.13;
        class SimpleObject {
            animate[] = {};
            hide[] = {};
            verticalOffset = 3.149;
            verticalOffsetWorld = 0;
        };
        editorPreview = "....etc etc..............

 

What happens when you use your code?  You say it doesn't work but how?  Is it invisible, or misplaced or just not there?

Share this post


Link to post
Share on other sites

Just not there. Maybe it needs to be set to a certain height, like spawning trees. But I tried different values and nothing.

Share this post


Link to post
Share on other sites

I mean, this works perfectly.
 

_posnew10 = getpos junk9;
_sol4 = createSimpleObject ["a3\air_f_beta\Heli_Transport_02\Main_Rotor_center_F.p3d", _posnew10];
_sol4 setPos [_posnew10 select 0, _posnew10 select 1, 0.4];

 

But the code in the OP will not.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×