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

Question about moving a brushmodel

broken avatar :(
Created 10 years ago
by AlecKeaneDUB
0 Members and 1 Guest are viewing this topic.
1,718 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 21 September 2014
Last active: 9 months ago
Posts
191
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Let's all just light up a blunt, and make stuff.
×
AlecKeaneDUB's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
AlecKeaneDUB's Contact & Social LinksAlecKeaneDUBaleckeanedubAlecKeaneDUB
So I have a quick, simple question about moving a brushmodel, or anything I suppose, through script. Here's the code I have that I question:
Code Snippet
Plaintext
elevator_func()
{
elevator_floor = getent( "elevator_floor" , "targetname" );
wait 2;
elevator_floor MoveZ( -8, 3 );

wait 3;
//level notify( "elevator_done" );
}
Which is just a simple floor that moves like an elevator. Now the line where it says:
Code Snippet
Plaintext
elevator_floor MoveZ( -8, 3 );
Is the first number (where i have the -8) the position on Z axis that it will move to or should that number be how many units it moves?

Thanks for your time
Marked as best answer by AlecKeaneDUB 10 years ago
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,186
Respect
1,371Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
Signature
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntStuffyBluntstuffy@BluntZombieStuffyZombie
movez( dist, time );

http://www.zeroy.com/script/motion/movez.htm

So right now it move's down 8 units in 3 seconds..




EDIT:

otherwise us moveto() then you can define the coordinate you want the brush to move to:
http://www.zeroy.com/script/motion/moveto.htm
Last Edit: June 13, 2015, 03:40:04 pm by BluntStuffy
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 21 September 2014
Last active: 9 months ago
Posts
191
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Let's all just light up a blunt, and make stuff.
×
AlecKeaneDUB's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
AlecKeaneDUB's Contact & Social LinksAlecKeaneDUBaleckeanedubAlecKeaneDUB
movez( dist, time );

http://www.zeroy.com/script/motion/movez.htm

So right now it move's down 8 units in 3 seconds..




EDIT:

otherwise us moveto() then you can define the coordinate you want the brush to move to:
http://www.zeroy.com/script/motion/moveto.htm
Helpful as always bro! Thanks :)

 
Loading ...