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

Objective error

broken avatar :(
Created 9 years ago
by pcmodder
0 Members and 1 Guest are viewing this topic.
2,463 views
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 22 September 2014
Last active: 4 years ago
Posts
360
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Here to make epic maps
×
pcmodder's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
pcmodder's Contact & Social Linkspcmodderugxken5hir0
I am following this tutorial http://ugx-mods.com/forum/index.php?topic=4403.0#msg48670 , then i do the first part it works fine when i turn on the power , but if i try to add any other objectives i get an error on this line

trig getEnt("objective_trigger","targetname");

And i have made the trigger multiple in radiant. When i try to add an objective like this:

        objective_add(2,"current","Lock and load");
   trig getEnt("give_ammo","targetname");
   trig waittill("trigger");
        objective_state(2,"done");
I am trying to make objective for buying the ammo string, or at least making more objective than the power is there anything i am missing to add 7 or 8 objectives? thanks
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
I am following this tutorial http://ugx-mods.com/forum/index.php?topic=4403.0#msg48670 , then i do the first part it works fine when i turn on the power , but if i try to add any other objectives i get an error on this line

trig getEnt("objective_trigger","targetname");

And i have made the trigger multiple in radiant. When i try to add an objective like this:

        objective_add(2,"current","Lock and load");
   trig getEnt("give_ammo","targetname");
   trig waittill("trigger");
        objective_state(2,"done");
I am trying to make objective for buying the ammo string, or at least making more objective than the power is there anything i am missing to add 7 or 8 objectives? thanks

I am a little confused. I never did this tut but I might. It looks like you are getting an error on a line I don't see in your code. Could you post your code and maybe screen shots of your trigger kvps? It sounds like there isn't a trigger with targetname "objective_trigger" but you are trying to get one... but I can't tell for sure without more information.
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
Show us the whole code, that small bit won't do
broken avatar :(
×
broken avatar :(
Location: usYork, SC
Date Registered: 15 March 2014
Last active: 5 years ago
Posts
214
Respect
Forum Rank
Mr. Elemental
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
WaW Scriptor
Signature
WaW Scriptor
×
PROxFTW's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
PROxFTW's Contact & Social LinksPROxFTWPROxFTWPROxFTWPROxFTW
Im going to go with the fact you don't have an equal sign on that line
It should be
 trig = getEnt("give_ammo","targetname");
not
 trig getEnt("give_ammo","targetname");
There could be something else but as far as what you have shown this is all I can get.
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
Im going to go with the fact you don't have an equal sign on that line
It should be
 trig = getEnt("give_ammo","targetname");
not
 trig getEnt("give_ammo","targetname");
There could be something else but as far as what you have shown this is all I can get.

He did that everywhere. I assumed those were typos since he didn't use code tags either. But then I looked at the tut and it is without = signs too...
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
He did that everywhere. I assumed those were typos since he didn't use code tags either. But then I looked at the tut and it is without = signs too...
Oh shit, gotta fix that.
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 22 September 2014
Last active: 4 years ago
Posts
360
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Here to make epic maps
×
pcmodder's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
pcmodder's Contact & Social Linkspcmodderugxken5hir0
Thanks for replies it was working first time adding the = . Thanks for the help and game content :)
Last Edit: November 16, 2014, 10:37:41 am by pcmodder

 
Loading ...