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

Script brushmodel destroyed?

broken avatar :(
Created 11 years ago
by HitmanVere
0 Members and 1 Guest are viewing this topic.
1,717 views
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 2 years ago
Posts
3,997
Respect
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
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.
Mapper Has released one or more maps to the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Dont know, if this is script problem or mapping one, but I will ask here.
I made script where when trigger is hit, then it destroy glass and plays few FXs. Problem is, that I can shoot the glass and it would destroy it, but I dont want this it happen. Script:

Code Snippet
Plaintext
console()
{
        fire_console = GetEnt("fire_console","targetname");
explosion = GetEnt("explosion","targetname");
        console_trig = getent("console_trig", "targetname");
        glass = getent("glass", "targetname");

        console_trig SetCursorHint("HINT_NOICON");
        console_trig SetHintString("Press &&1 to Destroy Jammer");

ent = spawn("script_model", console_trig.origin);
    ent setModel("tag_origin");
    PlayFXOnTag(level._effect["console_l"], ent, "tag_origin");

        console_trig waittill("trigger", player);
fire_console PlaySound("five_switch");
fire_console PlaySound("grenade_explode");
        console_trig delete();
        glass delete();
ent delete();
playFx(level._effect["step2_fx"], explosion.origin);
        playFx(level._effect["step_fx"], fire_console.origin);
}
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
The glass model can be destroyed? Choose a static one then or just use a texture.

Oh and FIX YOUR DAMN INDENTATION *slap*.
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 3 years ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
(ง º ω º )ง u wont sum m8y?
Signature
Do not take life too seriously. You will never get out of it alive.
×
DidUknowiPwn's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Ent setCanDamage(false); as script model should work no idea about brushmodel
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 2 years ago
Posts
3,997
Respect
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
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.
Mapper Has released one or more maps to the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
The glass model can be destroyed? Choose a static one then or just use a texture.

Oh and FIX YOUR DAMN INDENTATION *slap*.

Im using patch for the glass. And no :D

Ent setCanDamage(false); as script model should work no idea about brushmodel

Doesnt work on brushmodel :/

 
Loading ...