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

Targetname

broken avatar :(
Created 11 years ago
by GerardS0406
0 Members and 1 Guest are viewing this topic.
6,017 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 to use a targetname to target a script?
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
Senpai
Location: us
Date Registered: 28 September 2013
Last active: 10 months ago
Posts
602
Respect
Forum Rank
Zombie Enslaver
Primary Group
Box Mappers Elite
My Groups
More
My Contact & Social Links
More
×
arceus's Groups
Box Mappers Elite
Box Mappers Elite
arceus's Contact & Social LinksarceusNT
How to use a targetname to target a script?
im slightly confused on what u mean?
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
im slightly confused on what u mean?
In the script you call a target in radient ( kvp for the trigger is: (target; wunderfizz) then in the script you put something that receives the target wunderfizz and then I can put the wunderfizz script ;)
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
In the script you call a target in radient ( kvp for the trigger is: (target; wunderfizz) then in the script you put something that receives the target wunderfizz and then I can put the wunderfizz script ;)
GetEnt(Array if more than 1 of this entity)
If you're doing this but want to get the entity linked to it then it's just
ent.target
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
GetEnt(Array if more than 1 of this entity)
If you're doing this but want to get the entity linked to it then it's just
ent.target
This is basically a Random Perk Machine not really a wonderfizz so when you buy it, it gives you a random perk instantly so which one would I use for that... (I'm still learning to script srry if I'm bothering you)
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?
×
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
Well if you're just giving a random perk you can look at my Random Perk powerup script it does what you want just have to execute on player trigger.
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
Well if you're just giving a random perk you can look at my Random Perk powerup script it does what you want just have to execute on player trigger.
player trigger?
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?
×
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
player trigger?
trigger_use for example.
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
trigger_use for example.
Ok so for example:
Code Snippet
Plaintext
level.wunderfizz = getEntArray("wunderfizz_trigger","targetname");

for(i=0;i<level.wunderfizz.size;i++)
level.wunderfizz[i] thread zombie_perk_powerup();

// REST OF DUKIP RANDOM PERK CODE HERE
I hope this is how I do it haha
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?
×
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
Ok so for example:
Code Snippet
Plaintext
level.wunderfizz = getEntArray("wunderfizz_trigger","targetname");

for(i=0;i<level.wunderfizz.size;i++)
level.wunderfizz[i] thread zombie_perk_powerup();

// REST OF DUKIP RANDOM PERK CODE HERE
I hope this is how I do it haha
Yeah just so you know it doesn't exclude the perks you already have as well as it just gives the perk and makes you drink it. It doesn't actually like spawn a bottle and move it around.
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
Yeah just so you know it doesn't exclude the perks you already have as well as it just gives the perk and makes you drink it. It doesn't actually like spawn a bottle and move it around.
I know, that's what I was aiming for ;) Thx (Does it give perks to all players or just the one that bought it? (noob questions))
Last Edit: March 14, 2015, 03:21:59 am by GerardS0406
Marked as best answer by GerardS0406 11 years ago
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?
×
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
I know, that's what I was aiming for ;) Thx (Does it give perks to all players or just the one that bought it? (noob questions))
Well the way it's set up now it won't do anything. As right now you're calling the func that should be called on the player. You need to create a function that handles the trigger
Code Snippet
Plaintext
letrigger_func()
{
cost = 3000;
while(true)
{
self waittill("trigger", player);
if(player.score < cost)
return;

player.cost -= cost;
player thread maps\_zombiemode_perks::zombie_powerup_perk();
}
}
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
Well the way it's set up now it won't do anything. As right now you're calling the func that should be called on the player. You need to create a function that handles the trigger
Code Snippet
Plaintext
letrigger_func()
{
cost = 3000;
while(true)
{
self waittill("trigger", player);
if(player.score < cost)
return;

player.cost -= cost;
player thread maps\_zombiemode_perks::zombie_powerup_perk();
}
}
So it should be like this in my own gsc or _zombiemode.gsc?:
Code Snippet
Plaintext
level.wunderfizz = getEntArray("wunderfizz_trigger","targetname");

for(i=0;i<level.wunderfizz.size;i++)
level.wunderfizz[i] thread letrigger_func();

letrigger_func()
{
cost = 1500;
while(true)
{
self waittill("trigger", player);
if(player.score < cost)
return;

player.cost -= cost;
player thread maps\_zombiemode_perks::zombie_powerup_perk();
}
}

Then in _zombiemode_powerups, add your powerup
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?
×
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
Half asleep when I wrote that and 80% asleep now.
Change the player.cost to player.score and the _perks to _powerups and should be good.
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
Half asleep when I wrote that and 80% asleep now.
Change the player.cost to player.score and the _perks to _powerups and should be good.
Thx man for the help, I'll use this for future scripts ;) Thx

 
Loading ...