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

Shootable model

broken avatar :(
Created 11 years ago
by GerardS0406
0 Members and 1 Guest are viewing this topic.
1,557 views
broken avatar :(
×
broken avatar :(
Location: usMissouri
Date Registered: 6 August 2013
Last active: 10 months ago
Posts
513
Respect
Forum Rank
Zombie Enslaver
Primary Group
Member
My Contact & Social Links
More
Signature
Projects:
Unnamed Project: 5%
Mutliple Downloadable Items for Mappers: (Released after map releases)
×
GerardS0406's Groups
GerardS0406's Contact & Social LinksGerardS0406GerardS0406Gerard0406MrGerard0406
How do you make a model only shootable with a certain weapon and then it will open a door?
Marked as best answer by GerardS0406 11 years ago
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 6 years ago
Posts
6,875
Respect
Forum Rank
Immortal
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social LinksHarryBo000[email protected]HarryBo21
trigger_damage


Code Snippet
Plaintext
while( 1 )
{
    self waittill( "damage", user );

    if ( user getCurrentWeapon() == "weaponname" || user getCurrentWeapon() == "another_weapon_name" )
    {
        // CODE HERE
    }
    wait .1;
}

something to that effect, written off hand, use the script reference to find these kind of things

Spoiler: click to open...
Id recommend either ours using the search function, or Zeroys, - expand all - CTRL + F, and just type roughly what your looking for and go through the results
Last Edit: August 02, 2015, 03:32:33 am by Harry Bo21
broken avatar :(
×
broken avatar :(
Location: usMissouri
Date Registered: 6 August 2013
Last active: 10 months ago
Posts
513
Respect
Forum Rank
Zombie Enslaver
Primary Group
Member
My Contact & Social Links
More
×
GerardS0406's Groups
GerardS0406's Contact & Social LinksGerardS0406GerardS0406Gerard0406MrGerard0406
Just to make sure, you could do:
Code Snippet
Plaintext
if ( user getCurrentWeapon() == "weaponname" )
as well, not two weapons
Last Edit: August 02, 2015, 05:18:33 am by GerardS0406
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 6 years ago
Posts
6,875
Respect
Forum Rank
Immortal
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social LinksHarryBo000[email protected]HarryBo21
Just to make sure, you could do:
Code Snippet
Plaintext
if ( user getCurrentWeapon() == "weaponname" )
as well, not two weapons
yes

Code Snippet
Plaintext
|| // Or
&& // As well as

 
Loading ...