Jump to content
Sign in to follow this  
evandroh

A little help about position of objects when spawn together

Recommended Posts

Forgive my english and sorry if I'm doing something wrong (I'm new here).

I was trying spawn more than one object together to create a build already done in DayZ epoch mod. I'm doing this without knowledge in arma2 scripts, and need some help.

First of all, I want to spawn two walls (object: WoodLargeWall_DZ) that create a format in 'L' (one in front of me and another in the side with 90º degrees).

With that information I can build the rest of any house, I just need know what's the correct command.

The command what I was trying for spawn this two objects is:

_veh = createVehicle ["WoodLargeWall_DZ",getpos player,[], 0, ""];
_veh setpos (player modelToWorld [0,6,0]);
_veh setDir ([_veh, player] call BIS_fnc_dirTo);

_veh2 = createVehicle ["WoodLargeWall_DZ",getPosATL _veh,[], 0, ""];
_veh2 setpos (_veh modelToWorld [-2.5,2.5,0]);
_veh2 setDir (direction _veh) + 90;

But I think it's wrong in this way.

I really can't do it without some help. So please, give me a light.

Thanks, Evandro.

Edited by evandroh

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  

×