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

TuT for begginers!

broken avatar :(
Created 10 years ago
by Gabe
0 Members and 1 Guest are viewing this topic.
3,546 views
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
Hey guys!  Here is  TuT for begginers at scripting :p

ok to start off, this is the most basic thing you can do..

make your brush in radiant, make it a either a brush_model or a script_model as the class when you press 'N'. give it a targetname of your choice.

then do
Code Snippet
Plaintext
brush = getEnt("value", "targetname");
and now you can move your brush or do what ever you want as your compiler has got the entity of the brush that you made in radiant.

now to get it to move all you need to do is moveY();, moveX();, or moveZ(); here is a pic to help you with knowing which way moves what..
Spoiler: click to open...

ok now the functions inside the '()' (the amount that you want the brush to move, the speed you want it to move, 0.01 is the quickest and over 9000!!! is the largest, well, you don't need to quickest or the largest number as they will either be too quick and laggy or to slow and hardly moving at all..
Code Snippet
Plaintext
brush moveY(138, 2);
that is an example^
You can also do:
Code Snippet
Plaintext
brush waittill("movedone");
that waits until the brush has stopped moving and then you can move another brush later..

This is just the basics of scripting and i will do a more in depth later on.  But for now, Happy mapping/scripting!
Last Edit: April 09, 2014, 10:46:51 am by Gabe
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
Good one. I wish I had something like this when I started. A rotate command might be nice to add too?
Last Edit: April 09, 2014, 12:25:34 pm by MakeCents
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
here is a rotate brush:

there are different ways to rotate, and they rotate differently, similar to moveY,Z & X

there is
Code Snippet
Plaintext
brush rotateRoll(360, speed);
Code Snippet
Plaintext
brush rotateYaw(360, speed);
Code Snippet
Plaintext
brush rotatePitch(360, speed);

here is it in more depth:
Code Snippet
Plaintext
brush RotatePitch( <pitch angle>, <time>, <acceleration time>, <deceleration time> )
Code Snippet
Plaintext
brush RotateRoll( <roll angle>, <time>, <acceleration time>, <deceleration time> )
Code Snippet
Plaintext
brush RotateYaw( <yaw angle>, <time>, <acceleration time>, <deceleration time> )

you can also rotate around a velocity:
Code Snippet
Plaintext
brush RotateVelocity( <rotate velocity>, <time>, <acceleration time>, <deceleration time> )
this ^ Rotates the entity at a particular velocity for a given time
Last Edit: April 09, 2014, 12:43:20 pm by Gabe

 
Loading ...