Jump to content
Tankbuster

created weaponholder falls through ground

Recommended Posts

Hi all,

I'm creating a weaponholder and putting a "Item_SecretFiles" in it via addmagazinecargoglobal so players can pick it up.

But the weaponholder falls just under ground level. The 'take File (top secret) action still appears, but players can't see the object.
I've tried setposing it above ground and creating it, but it falls under ground straight away.
How can I make it stay on the gound?

//serverside
nseinvobj = "WeaponHolderSimulated_Scripted" createVehicle [0,0,1000];
nseinvobj addMagazineCargoGlobal [retrobjgamename,1];
_np = newsearchobj nearEntities ["SoldierWB", 10];
_nps = [_np, [], {_x distance2D newsearchobj}] call BIS_fnc_sortBy;
nseinvobj setpos getpos (_nps #0);


 

Share this post


Link to post
Share on other sites

hmm, should work, but if not, try to add a little height:

nseinvobj setpos (getpos (_nps #0) vectorAdd [0,0,0.1]);

Share this post


Link to post
Share on other sites

It's seen to move to the new height, but immediately falls underground

 

Share this post


Link to post
Share on other sites

Map problem, probably. Replace "WeaponHolderSimulated_Scripted" by "GroundWeaponHolder_Scripted"  , so the fall simulation is disabled.

  • Like 1

Share this post


Link to post
Share on other sites

That's working Pierre, thank you. Still have to move it up a lift to show, but it doesn't fall any more. Thanks again!

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

×