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

Moving misc_turret?

broken avatar :(
Created 10 years ago
by MakeCents
0 Members and 1 Guest are viewing this topic.
3,362 views
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
Can someone point me in a direction in which I could learn, if this is possible, how to make a misc_turret move? I have a script_brushmodel that moves around and an auto turret system. I would like to add/link an auto turret to the brushmodel. Everything I tried so far either renders the turret useless, doesn't move the turret and sometimes the brushmodel, or the turret just disappears.

Thanks!
Last Edit: April 02, 2014, 06:55:06 pm by MakeCents
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
Location: gbLondon
Date Registered: 9 April 2014
Last active: 10 years ago
Posts
9
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
Gabe's Groups
select the turret and press 'N' then click where it says classname misc_turret or what ever and change it to this:
Key: classname
vaule: script_turret

then give it a targetname  and get the entity in the gsc..
and now you can do moveY with this model.. etc.
Last Edit: April 14, 2014, 09:09:54 am by Gabe
broken avatar :(
×
broken avatar :(
Location: de
Date Registered: 6 August 2012
Last active: 4 years ago
Posts
277
Respect
Forum Rank
Mr. Elemental
Primary Group
Community Scripter Elite
My Groups
More
×
YaPh1l's Groups
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
YaPh1l's Contact & Social Links
Have you tested that?

- Phil.
broken avatar :(
×
broken avatar :(
Location: gbLondon
Date Registered: 9 April 2014
Last active: 10 years ago
Posts
9
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
Gabe's Groups
Have you tested that?

- Phil.

That post was so pointless  :lol: :lol:
broken avatar :(
×
broken avatar :(
Location: de
Date Registered: 6 August 2012
Last active: 4 years ago
Posts
277
Respect
Forum Rank
Mr. Elemental
Primary Group
Community Scripter Elite
My Groups
More
×
YaPh1l's Groups
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
YaPh1l's Contact & Social Links
Let me rephrase it:
A misc_turret already is an entity accessible by script, so I would not see why one would have to change the classname to 'script_turret'. Furthermore, I have not seen a classname of 'script_turret' being available in Radiant. Therefore, I want to express my doubt regarding the functionality of your provided solution and hereby ask for test results to show that it does work.

Thank you very much,
- Phil.
broken avatar :(
×
broken avatar :(
Location: gbLondon
Date Registered: 9 April 2014
Last active: 10 years ago
Posts
9
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
Gabe's Groups
im sorry i was refering to misc_model --> script_model

im new to the turret stuff.. :p
Marked as best answer by MakeCents 10 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
×
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
Have you tested that?

- Phil.
Thanks for looking out.

im sorry i was refering to misc_model --> script_model

im new to the turret stuff.. :p
Thanks for trying anyway. I appreciate the effort.


SOLVED

I found this link using linkto in a script, tried it, and there you go.

Code Snippet
Plaintext
        thingtolinkto = getent("thingtolinkto", "targetname"); //get the thing you want to link to while it moves
turret = spawnTurret( "misc_turret", thingtolinkto.origin + (0,0,20), "mg42_bipod_stand" ); //adjust position
turret setModel("mounted_ger_mg42_bipod_mg"); //set model
//other settings...
turret linkto(thingtolinkto); //This is the magic line to make it work
turret.targetname = "auto_mg"; //added this and now my auto turret system uses it
Last Edit: April 15, 2014, 12:56:46 pm by MakeCents

 
Loading ...