Jump to content
schadler17

Failing at using BIS_fnc_addRespawnPosition

Recommended Posts

Trying to create a Squad Rallypoint System which a Squad Leader uses an addAction menu to create an object, which will allow players to respawn.

 

At the end of it all, I got everything working right except the function isn't adding the respawn position. No errors or anything show, but no spawn location on respawn.

_unit = _this select 0;
_unitGroup = group _unit;
_unitPos = _unit modelToWorld [0,2,0];
_srpPos = [_unitPos select 0, _unitPos select 1, ((getPosATL _unit) select 2)];

_rallyPoint = "FlagSmall_F" createVehicle [0,0,0];
_rallyPoint setPos _srpPos;

_srp = [_unitGroup, _rallyPoint] call BIS_fnc_addRespawnPosition;

Am I doing something wrong? Lol.

 

(Theres more to the script, but its basically all cosmetic stuff. Fixing the direction, invulnerable SRP, hints, etc.)

Share this post


Link to post
Share on other sites

Got it working.

 

Just used this instead:

_srp = [(group _unit), (getPos _rallyPoint), "Squad Rally Point"] call bis_fnc_addRespawnPosition;

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

×