UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Disable jump?

broken avatar :(
Created 12 years ago
by Ege115
0 Members and 1 Guest are viewing this topic.
3,852 views
broken avatar :(
×
broken avatar :(
Location: se
Date Registered: 30 July 2013
Last active: 2 years ago
Posts
517
Respect
Forum Rank
Zombie Enslaver
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
×
Ege115's Groups
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Ege115's Contact & Social LinksEge115
Hello everybody, and merry christmas!

I have been wondering how I fix this.
I have an elevator in my map, and if the player jumps in the elevator while it is moving, the player will get stuck on the ceiling in the elevator.

I know that there were some line that I saw a while ago that made so the script disabled the jumping. like jump false or something.
But if anybody know the lines name, where should I put it in a script?
Should I put the line after when the trigger has been hit?
Like after the line waittill trigger?

Thanks in advance, Merry christmas again! :)
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 10 years ago
Posts
2,789
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
Signature
Let's keep this thread on topic from here on in. -DBZ

+1 to off-topic reply -DBZ

lmao. Too funny.

Goliath Script Placer: http://ugx-mods.com/forum/index.php/topic,11234.msg125257/topicseen.html#new

"...Christ, people. Learn C, instead of just stringing random characters
together until it compiles (with warnings)..."

-Linus Torvalds
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
Code Snippet
Plaintext
AllowJump( false ); 

I'd do a check to make sure the player is in the elevator before you disable jump, otherwise they simply won't be able to jump.
broken avatar :(
×
broken avatar :(
Location: se
Date Registered: 30 July 2013
Last active: 2 years ago
Posts
517
Respect
Forum Rank
Zombie Enslaver
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
×
Ege115's Groups
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Ege115's Contact & Social LinksEge115
Alright so I put this after the trigger has been activated right? Or do I have to put a trigger radius or a multiple in the elevator that make sure that as soon as the player is in the elevator and the player is touching the trigger, it will disable jump?
Marked as best answer by Ege115 12 years ago
broken avatar :(
×
broken avatar :(
[UGX] Maintainer (Admin & Programmer)
Location: deFriedrichshafen, Baden-Württemberg, Germany
Date Registered: 29 August 2012
Last active: 3 days ago
Posts
450
Respect
Forum Rank
Perk Hacker
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
Personal Quote
Dolphin!
Signature
changed one line of code, bug is fixed


Coming to work on monday morning.
When a bug mysteriously disappears.


:ugxmods: Developer ;)
×
Delta's Groups
UGX Administrator
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
UGX Chat Moderator Has the ability to mute, kick, or ban chat members for being abusive or breaking the rules of the forum.
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Delta's Contact & Social LinksItsDeltaugx_deltathe-deltaugxDeltaigdeltaigDelta UGX_DeltaigdeltaPersonal Site
I was working on realistic elevator a while ago.

You could, as deadra descent already wrote, use the script command:

Code Snippet
Plaintext
player AllowJump(false); // true = allow jump, false = disable jump

Technically you need a trigger multiple which fills the whole elevator. ( a volume )
Then you check if the player is touching the trigger and wait until it get's activated.

While it is activated / moving disallow jump for all players who touch the trigger ( only those who are in the elevator )

You could also do what I did: Make the top brush(es) uncollideable when the player is touching this brush so he won't get stuck in the brush.

broken avatar :(
×
broken avatar :(
Location: se
Date Registered: 30 July 2013
Last active: 2 years ago
Posts
517
Respect
Forum Rank
Zombie Enslaver
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
×
Ege115's Groups
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Ege115's Contact & Social LinksEge115
Hmm, it sounds easier to do what you did delta, how do I make the brushes uncollideable then?
broken avatar :(
×
broken avatar :(
Location: beAntwerpen, Belgium
Date Registered: 26 December 2013
Last active: 5 years ago
Posts
32
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
Signature
You can support my work here:
https://www.paypal.me/jvrijdags
×
JV's Groups
JV's Contact & Social Links_jv_100
First, make sure your brushes are selected. Then right click in the 2d grid and click 'make non-colliding'  :).

Wouldn't you find it easier to use teleporters that just teleport you from one place to another using a reload-time function?
broken avatar :(
×
broken avatar :(
Location: se
Date Registered: 30 July 2013
Last active: 2 years ago
Posts
517
Respect
Forum Rank
Zombie Enslaver
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
×
Ege115's Groups
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Ege115's Contact & Social LinksEge115
Nah, I did not like to have the brush noncolliding, I think I am goimg to try with the allowjump false.
I don't know how the script would look like but I maybe find something.

(Help is still appreciated)

I don't want a teleporter in my map, because it would not fit the style of the map that I am making.

Post Merge: December 26, 2013, 04:09:38 pm
@Delta, in my case all the players HAS be in the elevator. So do I really have to make a trigger miltiple and make so the players can't jump if they touch the trigger? Because in my map the players can't be anywhere else when they are in the elevator.
So in my case can't I just add those jump functions directly after when the trigger use has been activated?

I also have a problem with the elevator when the doors are closing. Yes the doors are closing but they are closing as soon as ONE player have touched the trigger multiple. In my case I want so the doors are closing as soon as all the players have touched the trigger. But I don't know how to do that as usual.

Post Merge: December 26, 2013, 10:02:28 pm
Edit: I got it working, you can not jump in the elevator now, thank you @Delta!
Last Edit: December 26, 2013, 10:02:28 pm by Ege115
broken avatar :(
×
broken avatar :(
[UGX] Maintainer (Admin & Programmer)
Location: deFriedrichshafen, Baden-Württemberg, Germany
Date Registered: 29 August 2012
Last active: 3 days ago
Posts
450
Respect
Forum Rank
Perk Hacker
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
Personal Quote
Dolphin!
×
Delta's Groups
UGX Administrator
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
UGX Chat Moderator Has the ability to mute, kick, or ban chat members for being abusive or breaking the rules of the forum.
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Delta's Contact & Social LinksItsDeltaugx_deltathe-deltaugxDeltaigdeltaigDelta UGX_DeltaigdeltaPersonal Site
Sorry I was busy and totally forgot about this thread here.

Glad it worked for you.

 
Loading ...