SaintZ

How to Simulate Objects?

4 posts in this topic

Hey guys I want to add a few lamps to the map and was wondering how I would go about simulating the object through the initserver

 ["Land_LampShabby_F",[7625.68,6923.03,73.224],[[0,1,0],[0,0,1]],[false,false]]

Share this post


Link to post
Share on other sites

Posted (edited)

    ["RoadBarrier_F",[21742.3,7529.37,15.536],[[0.931636,-0.363242,0.0104483],[-0.00133721,0.0253251,0.999678]],[false,false]],
];
{
    private _object = (_x select 0) createVehicle [0,0,0];
    _object setPosASL (_x select 1);
    _object setVectorDirAndUp (_x select 2);
    _object enableSimulationGlobal ((_x select 3) select 0);
    _object allowDamage ((_x select 3) select 1);
} forEach _objects;

 

_object enableSimulationGlobal ((_x select 3) select 0);

so the first false need to be a true

Edited by Warsheep

Share this post


Link to post
Share on other sites
Advertisement
On ‎6‎/‎22‎/‎2016 at 3:51 PM, Warsheep said:

    ["RoadBarrier_F",[21742.3,7529.37,15.536],[[0.931636,-0.363242,0.0104483],[-0.00133721,0.0253251,0.999678]],[false,false]],
];
{
    private _object = (_x select 0) createVehicle [0,0,0];
    _object setPosASL (_x select 1);
    _object setVectorDirAndUp (_x select 2);
    _object enableSimulationGlobal ((_x select 3) select 0);
    _object allowDamage ((_x select 3) select 1);
} forEach _objects;

 

_object enableSimulationGlobal ((_x select 3) select 0);

so the first false need to be a true

Ok, so if I got this right:

 private _objects = [

["Land_LampShabby_F",[7625.68,6923.03,73.224],[[0,1,0],[0,0,1]],[true,false]]

];
{
    private _object = (_x select 0) createVehicle [0,0,0];
    _object setPosASL (_x select 1);
    _object setVectorDirAndUp (_x select 2);
    _object enableSimulationGlobal ((_x select 3) select 0);
    _object allowDamage ((_x select 3) select 1);
} forEach _objects;

_object enableSimulationGlobal ((_x select 3) select 0);

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.