Jump to content
Sign in to follow this  
Slapstick

SQF confusion and BIS_fnc_spSlingLoadAttach

Recommended Posts

I originally asked this question in the here, but since it relates to a TOH specific function I thought I would ask again in the TOH forum as well.

The wiki documentation for the BIS_fnc_wpSlingLoadAttach function states that the function takes three parameters: posLimit, failCode, and weight. But one of the examples provided uses six parameters...

[player, dude, 50, 10, {hintC "You lost the cargo!"}, 1000] spawn BIS_fnc_wpSlingLoadAttach;

The top of the wpSlighLoadAttach script contains the following code:

_posLimit = [_params,0,-1,[0,true]] call bis_fnc_param;
_failCode = [_params,1,{},[{}]] call bis_fnc_param;
_weight = [_params,2,-1,[0]] call bis_fnc_param;

So, apparently the script is expecting the first three parameters to be the ones documented in the wiki. So why is the example passing more parameters than the function accepts? What are "player", "dude", and "50"? Confused minds want to know.

Share this post


Link to post
Share on other sites

I have come to the conclusion most of the fn_wpSlingLoadAttach.sqf is ignored and instead coded elsewhere perhaps in the .exe and defaulted to the 0,0,0 point of the bounding-box. :rolleyes:

There is a similar post here re the "fn_wpSlingLoadAttach" and its oddness

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  

×