• 0
Sign in to follow this  
Followers 0
Santa

Attach parachute to bambi

Question

How do you guys attach the parachute to a player?

When i try to do it the screen shakes insanely, with Exile it doesn't.

 

_parachuteNetID = "";
if ((getNumber(configFile >> "CfgSettings" >> "BambiSettings" >> "parachuteSpawning")) isEqualTo 1) then
{
	_parachuteObject = createVehicle ["Steerable_Parachute_F", _position, [], 0, "CAN_COLLIDE"];
	_parachuteObject setDir _direction;
	_parachuteObject setPos _position;
	_parachuteObject enableSimulationGlobal true;
	_parachuteNetID = netId _parachuteObject;
}
else
{
	_parachuteNetID = "noParachute";
};

I've seen this code, but nowhere it 'attaches' the player to it.

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0

The _parachuteNetID is sent to the client and the client then moves in. Check ExileClient_object_player_spawn.

1 person likes this

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.