Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Jump jumpa as high as u can!
Jump jumpa as high as u can!
2001-04-13, 4:34 AM #1
i need a way to tell when a player is jumping and then make him jump higher. I know u use applyforce to make him go higher but then how do u find out if he is jumping
roses are red, violets are blue, I am schizophrenic, and I am too!
2001-04-13, 6:05 AM #2
Testing..

------------------
Blessed are the mighty minded phor they shall ride the whirlwinds, cursed are they who teach lies phor truth and truth phor lies phor they are an abomination.. [/i]
2001-04-13, 11:29 AM #3
if(GetThingAttachFlags(player) == 0 && VectorZ(GetThingVel(player)) > 0.0))
{
ApplyForce(player, you know the rest);
}

The attatch flags ses if the player is on a surface and the VectorZ checks to see if the player it jumping up, not falling down.

Have fun.
2001-04-13, 12:47 PM #4
But what if the player is being pulled upwards? -Like in the top room in the Bespin Mining Station level.

------------------
And though your very flesh and blood
..Be what your Eagle eats and Drinks,
You'll praise him for the best of birds,
..Not knowing, what the Eagle thinks. -Cassandra
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2001-04-13, 12:49 PM #5
If i had thought of checking to see if he was on a surface and then see if he was moving up i probably could have done it without your help. The thing is i never would have thought of that. I can't believe it is that easy thanks a bunch
and if he is being pulled up he will just hit the ceiling a bit harder.
roses are red, violets are blue, I am schizophrenic, and I am too!

↑ Up to the top!