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

Help Scripting

broken avatar :(
Created 7 years ago
by OptomusPrime22
0 Members and 1 Guest are viewing this topic.
2,006 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 10 January 2016
Last active: 7 years ago
Posts
23
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
OptomusPrime22's Contact & Social Links
HI I am wondering how to a)remove a clip box or b)add a trigger. I am trying to make a teleporter only function after you shoot 4 objects which I already scripted the last part with the shootables, but I don't know how to make it unlock the teleporter after... If I could get some help that would be great :)
Last Edit: November 17, 2016, 04:02:45 am by Sidzzz
Marked as best answer by OptomusPrime22 7 years ago
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 17 February 2014
Last active: 1 year ago
Posts
69
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
What is broken can be reforged
Signature
Completed maps:
Kingdom Hearts - World at War Link
Minecraft - Black ops 3 Link

WIP:
~

×
shinged's Groups
shinged's Contact & Social LinksShingedvinny545TheShingedMatarra_
You can remove a clip box by simply making it a clip_player and making it a script brushmodel. use GetEnt to get the targetname of that script model and delete it when you want it gone. Alternatively you could just use TriggerEnable( false ) on your teleport trigger and set it to true after your easter egg is complete
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 10 January 2016
Last active: 7 years ago
Posts
23
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
OptomusPrime22's Contact & Social Links
You can remove a clip box by simply making it a clip_player and making it a script brushmodel. use GetEnt to get the targetname of that script model and delete it when you want it gone. Alternatively you could just use TriggerEnable( false ) on your teleport trigger and set it to true after your easter egg is complete

I tried doing this and my script does run I have confirmed that but the clip box doesn't remove when finished... I may have done this wrong because I did base it off of a music Easter egg...

http://pastebin.com/UdQ4urdF

If you could glance at this that would be cool :)
Last Edit: November 18, 2016, 12:05:42 pm by Sidzzz
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 12 October 2016
Last active: 6 years ago
Posts
2
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
werewolfps4's Groups
werewolfps4's Contact & Social Links
It should work. I did the same thing with the same song code. Make sure you clip is a script brush, and that its targetname is the same in the GetEnt function.
You could also have it initialize the teleporter script after completing the shootable EE script.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 10 January 2016
Last active: 7 years ago
Posts
23
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
OptomusPrime22's Contact & Social Links
It should work. I did the same thing with the same song code. Make sure you clip is a script brush, and that its targetname is the same in the GetEnt function.
You could also have it initialize the teleporter script after completing the shootable EE script.

I realized now I was being dumb and by the time I asked it wouldn't let me delete it... Lol hadn't made a clip box even yet then lol

 
Loading ...