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

Help with Triggers

broken avatar :(
Created 11 years ago
by oblic999
0 Members and 1 Guest are viewing this topic.
1,383 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 28 December 2014
Last active: 6 years ago
Posts
4
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
oblic999's Groups
oblic999's Contact & Social Links
ok so i was wondering if you can set up a trigger to activate 2 models that link to 2 different script_structs
i want a gate to go right, and than another gate go left when the trigger is purchased.
If you know how to do this please reply back :) thanks in advance!

Double Post Merge: April 25, 2015, 10:50:23 pm
or if this is even possible
Last Edit: April 25, 2015, 10:50:23 pm by oblic999
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 6 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Mapper Has released one or more maps to the UGX-Mods 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
ok so i was wondering if you can set up a trigger to activate 2 models that link to 2 different script_structs
i want a gate to go right, and than another gate go left when the trigger is purchased.
If you know how to do this please reply back :) thanks in advance!

Double Post Merge: April 25, 2015, 10:50:23 pm
or if this is even possible

If you want this to be a door, then just make it like you would a door, but make two seperate ents, with different script_vectors.

If you want it to just be something to do in the middle of a zone and not activate any zones then you can:
Radiant:
Make the two gates script_models, or script_brushmodels
Make two script_structs at the position you want the gates to move to
Set up one struct as the target of one gate, select gate, then struct, then press W
Repeat previous step for other gate.
Add a trigger_use, select it and then one of the gates, press W
Select the trigger again and select the other gate, and press W
Make a targetname kvp for the trigger, i.e. gates


Script:
Write a script that gets an array of ents with targetname kvps of gates.
Then waits for trigger
Then gets array of target ents and threads another function on each
Then in the new function get the target struct and use a moveto(struct.origin,1);

You may want to call connectpaths on each gate as well. You may need to solid and notsolid the gates or use an additional clip brush also.

Last Edit: April 26, 2015, 01:19:14 am by MakeCents
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 28 December 2014
Last active: 6 years ago
Posts
4
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
oblic999's Groups
oblic999's Contact & Social Links
ok i will try that thanks

 
Loading ...