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

Perk trigger

broken avatar :(
Created 12 years ago
by animallover
0 Members and 1 Guest are viewing this topic.
1,578 views
broken avatar :(
×
broken avatar :(
Location: gbIsle of Man
Date Registered: 17 July 2013
Last active: 6 years ago
Posts
536
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
- It was a clear black night, a clear white moon -
Signature
<3

AnimalLover

Aranda
Aldenrade
Christmas

<3

×
animallover's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
How do i make it so you can buy perks with a trigger or something? Cheers :)
broken avatar :(
×
broken avatar :(
UM Member, Mapper and 3d Modeler
Location: ca
Date Registered: 8 February 2014
Last active: 5 years ago
Posts
835
Respect
Forum Rank
The Decider
Primary Group
Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Port Arthur
Signature
×
pashan's Groups
Mapper Has released one or more maps to the UGX-Mods community.
I don't know if this is the right way to do it but this is how i would do it.

1) get the perk prefab out side of teh map. Stamp it

2) move the prefeab's trigger to where ever u want the trigger to be.
broken avatar :(
×
broken avatar :(
RadihaX
Location: caCanada
Date Registered: 2 September 2012
Last active: 5 years ago
Posts
978
Respect
Forum Rank
The Decider
Primary Group
Mapper Elite
My Groups
More
My Contact & Social Links
More
Signature
Overrun
Lockdown
Overrun (Black Ops Mod)
Snowglobe
Leviathan
Abandoned School
Ski Resort
Leviathan Redux
×
JBird632'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 Elite Has shown excellence and experience in the area of custom mapping in the UGX-Mods community.
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
JBird632's Contact & Social LinksJBird632JBird632JBird632JBird632JBird632Mapper
I think he means more like the wonderful machine where you would purchase a random perk from a trigger.
This would require scripting of course.

Basically you would need to get all perks into an array, then have a loop on the trigger waiting until a player triggers it, check if the player has enough money to purchase a perk - if they do, take money; if they don't, just use a continue to skip back to the start of the loop - then randomize the array, and give the first perk in the array (since its randomized) - like perks[0]. Finally, check if the player already has that perk and if they don't, give them it, if they do randomize it and try again.

 
Loading ...