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

Triggers not working

broken avatar :(
Created 8 years ago
by reckfullies
0 Members and 1 Guest are viewing this topic.
1,756 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 12 September 2016
Last active: 3 years ago
Posts
306
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
×
reckfullies's Groups
reckfullies's Contact & Social LinksReckfulliesReckfullies
I just finished making a buildable script and when I load into the game all my triggers that have the target names that I have in my script just show this:


Code for getting the ents:
Code Snippet
Plaintext
buildTable = GetEnt("build_table", "targetname");
buildTable SetHintString("Missing Parts!");
buildTable SetCursorHint("HINT_NOICON");

part1_trig = GetEnt("build_part1", "targetname");
part1_trig SetHintString("Press and hold &&1 to pickup ^3part1");
part1_trig SetCursorHint("HINT_NOICON");

part2_trig = GetEnt("build_part2", "targetname");
part2_trig SetHintString("Press and hold &&1 to pickup ^3part2");
part2_trig SetCursorHint("HINT_NOICON");

part3_trig = GetEnt("build_part3", "targetname");
part3_trig SetHintString("Press and hold &&1 to pickup ^3part3");
part3_trig SetCursorHint("HINT_NOICON");

I am unsure what is going on and it's really been annoying me.

Double Post Merge: October 03, 2016, 12:49:06 am
I just found out that it does work, but only once ive activated the trigger from one of my other scripts.

Why would this be the case? These two scripts aren't connected in any way, and neither are the triggers
Last Edit: October 03, 2016, 12:49:06 am by reckfullies
Marked as best answer by reckfullies 8 years ago
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
It must be where you are calling them from. You must not have used thread before the call. Then in one script it is waiting for the trigger, and then after it is triggered, completes that function call and moves onto the one you have here....?
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 12 September 2016
Last active: 3 years ago
Posts
306
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
×
reckfullies's Groups
reckfullies's Contact & Social LinksReckfulliesReckfullies
It must be where you are calling them from. You must not have used thread before the call. Then in one script it is waiting for the trigger, and then after it is triggered, completes that function call and moves onto the one you have here....?

Yep, turns out I was accidentally not threading one of them.

 
Loading ...