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

Adding Objects with script

broken avatar :(
Created 7 years ago
by OptomusPrime22
0 Members and 1 Guest are viewing this topic.
1,737 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
So I'm doing an easter egg and when I shoot the first object I want it to then add the second object into the map, how would I go about scripting this?
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
So I'm doing an easter egg and when I shoot the first object I want it to then add the second object into the map, how would I go about scripting this?

You could either spawn things in, or simply put every thing in the map, then hide all but the one, then unhide I've at a time, after one is shot. This is easier if it's randomized. Then choosing next is simply l indexing the next item in the array.
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 could either spawn things in, or simply put every thing in the map, then hide all but the one, then unhide I've at a time, after one is shot. This is easier if it's randomized. Then choosing next is simply l indexing the next item in the array.

What would the script look like... Kind of a noob but not at the same time lol
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
What would the script look like... Kind of a noob but not at the same time lol

Well its not super easy to script. If I were doing it I would setup a prefab in radiant with a damage trigger and a model as the target of the trigger. Copy that around a few times, as many as you like, then I would add structs where you wanted the shootables, with a targetname. If you wanted them in a certain order, I would add a kvp for script_noteworthy.

From there you would get the triggers, get the model for the triggers, and get the structs. Link the triggers to the models, hide all the models. Then unhide one of the models, wait for it to be triggered, and unhide another.

 
Loading ...