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

Any waittill for rocket launcher weapon class?

broken avatar :(
Created 12 years ago
by Ege115
0 Members and 1 Guest are viewing this topic.
1,899 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
Is there any waittill/notify for when you pull out rocket lancher? I have a weaponfile with the weapon class as "rocketlauncher". I know, for a grenade you can do,
Code Snippet
Plaintext
self waittill("grenade_fire");
for a grenade or smoke grenade or equipment etc.
But I am trying to do this for a the rocket launcher weapon class because I am trying to make an equipment were you will have to press "6" to use. But when I used the rocket launcher weapon class and tried that with the grenade fire waittill, it didn't work.

So yea, my question is are there any other waittill/notify that will wait for the player to use the weapon class "rocket launcher"? (pressing 6)

Thanks in advance.
Marked as best answer by Ege115 12 years ago
broken avatar :(
×
broken avatar :(
[UGX] Founder
Location: usBay Area, California
Date Registered: 24 June 2011
Last active: 3 years ago
Posts
5,544
Respect
6,646Add +1
Forum Rank
Immortal
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
Signature
If Java had true garbage collection, most programs would delete themselves upon execution.
×
treminaor's Groups
UGX Administrator
UGX Team Member
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.
Is there any waittill/notify for when you pull out rocket lancher? I have a weaponfile with the weapon class as "rocketlauncher". I know, for a grenade you can do,
Code Snippet
Plaintext
self waittill("grenade_fire");
for a grenade or smoke grenade or equipment etc.
But I am trying to do this for a the rocket launcher weapon class because I am trying to make an equipment were you will have to press "6" to use. But when I used the rocket launcher weapon class and tried that with the grenade fire waittill, it didn't work.

So yea, my question is are there any other waittill/notify that will wait for the player to use the weapon class "rocket launcher"? (pressing 6)

Thanks in advance.
Why would you need a waittill to put a weapon on the 6 key? Just use actionslots.
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
Why would you need a waittill to put a weapon on the 6 key? Just use actionslots.
Oh..... well, I don't know why I don't. I tested setactionslot now and it seems to work.
Thanks for telling me that, lol.

If anybody else want to know about how to do this, then look at this.
http://ugx-mods.com/script/#core.Player.setActionSlot

 
Loading ...