Jump to content
M1ke_SK

attach player to ballon via rope

Recommended Posts

Hi,

 

I am trying to attach balloon to player with rope. And balloon go up to certain height and it stay there until it pops when shoot it.

 

balloon class

Land_Balloon_01_air_F

Code

balloon enableRopeAttach true;
myRope = ropeCreate [player, "RightHand", balloon, [0,0,0], 10];

for [{_x = 0}, {_x <= 10}, {_x = _x + 0.5}] do 
{
    _pos = getPos balloon;
    balloon setPos [_pos select 0, _pos select 1, _x];
    sleep 1;
};

Share this post


Link to post
Share on other sites

What are you asking exactly? How to make the balloon go up?

 

Sounds like a remake of MGSV fulton extracts by the way!

Share this post


Link to post
Share on other sites

Yes, I want to ballon go up from ground. Attach ballon to players right hand with rope and balloon go up.

Share this post


Link to post
Share on other sites

Your code won't work since the for loop will run its course and then stop. I never tried attaching ropes to object but let's assume it works as expected.

Then you'd need to run something like:

_alt = 10;
while (alive balloon) do {
	_h = (getPos balloon) select 2;
	_adjust = (_alt - _h) / 10;
	balloon setVelocity ((velocity balloon) vectorAdd [0,0,_adjust]);
	sleep 0.1;
};

(idea borrowed from Tajin from https://forums.bistudio.com/topic/192817-precise-chopper-flyinheight-at-low-altitudes/)

Share this post


Link to post
Share on other sites

So you want to create a fulton extraction? :p

Share this post


Link to post
Share on other sites

So you want to create a fulton extraction? :P

Looking at his post and the code he posted, no he doesn't.

Share this post


Link to post
Share on other sites

If you want to attach a player to a rope you have to attach the player to something else first (small physic enabled object that can then be made invisible) and attach that to the rope instead.

 

Attaching the player directly won't work.

Share this post


Link to post
Share on other sites

If you want to attach a player to a rope you have to attach the player to something else first (small physic enabled object that can then be made invisible) and attach that to the rope instead.

 

Attaching the player directly won't work.

 

But I make it attachable

balloon enableRopeAttach true;

Share this post


Link to post
Share on other sites

Well, there is a difference between attaching a balloon to the player and attaching the player to a balloon.

 

Simply put:

If you want to use a rope to actually move the player around then you need the workaround I mentioned.

Share this post


Link to post
Share on other sites

Holy shit, thats awesome! I got to play around with these ropes more. Forgot all about them.

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

×