Code

Posts 1–7 of 7 · Page 1 of 1
[SOLVED] Close please
Code:
Jump()
{
	self endon("disconnect");
	if("jump_height" == "39")
	{
		setDvar("jump_height", "800");
	}
	else
	{
		setDvar("jump_height", "39");	
	}
}
This code doesn't work for me. I'm using a menu and when i choose jump, nothing happens. Can anyone explain?
Never tried this, so I might just be thinking of something else, but

Code:
Jump()
{
	self endon("disconnect");
 
        jumpHeight = getDvar("jump_height");

	if(jumpHeight == 39)
	{
		setDvar("jump_height", 800);
	}
	else
	{
		setDvar("jump_height", 39);	
	}
}
I do know there is some kind of getVelocity code, that doesn't involve a Dvar.
Can't remember it though, and can't think of anything else. Sorry ;(
Quote Originally Posted by Arasonic View Post
I do know there is some kind of getVelocity code, that doesn't involve a Dvar.
Can't remember it though, and can't think of anything else. Sorry ;(
Found the code in Elitemossys v8

Code:
Jump()
{
	self endon("disconnect");
 
	if(getDvarInt("jump_height")!=999)
	{
		setDvar("jump_height",999);
		setDvar("bg_fallDamageMaxHeight",9999);
		setDvar("bg_fallDamageMinHeight",9998);
	}
	else
	{
		setDvar("jump_height",39);
		setDvar("bg_fallDamageMaxHeight",300);
		setDvar("bg_fallDamageMinHeight",128);
	}
}
thanks, but do you know if there's an easy way to toggle the jump from normal jump to super jump because that is what i was trying to do. Atleast the super jump works now but i can't turn it off.

EDIT: thanks guys, but still can't put off super jump
Mork as solved?
/solved

Good job guys

/Closed
Posts 1–7 of 7 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us