Jump to content
Sign in to follow this  
Black_watch

Stacking cargo crates

Recommended Posts

Could some one please point me in the direction for a script to stack cargo crates please.

I know the init for popping crates on top of each other is

 This setPos [ getPos this select 0, getPos this select 1, (getPos this select 2) +2.7]

What I'm trying to do though is stack cargo containers at a 45 degree angle against each other.

Share this post


Link to post
Share on other sites

You need a functions module on the map to use this and

waituntil {!isnil "bis_fnc_init"};

at the top of the script. See more functions and a complete list using BIS_fnc_Help

http://community.bistudio.com/wiki/Category:ArmA_2:_Functions

scriptName "Functions\objects\fn_setPitchBank.sqf";

/************************************************************

Set Pitch and Bank

By Andrew Barron

Parameters: [object, pitch, bank]

Returns: nothing

Rotates an object, giving it the specified pitch and bank,

in degrees.

Pitch is 0 when the object is level; 90 when pointing straight

up; and -90 when pointing straight down.

Bank is 0 when level; 90 when the object is rolled to the right,

-90 when rolled to the left, and 180 when rolled upside down.

Note that the object's yaw can be set with the setdir command,

which should be issued before using this function, if required.

The pitch/bank can be leveled out (set to 0) by using the

setdir command.

Example: [player, 45, -45] call BIS_fnc_setPitchBank

************************************************************/

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  

×