





Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!This moves the "door"
door1 = GetEnt("door1", "targetname");
door1 MoveTo((-16, 80, 9), 0.5, 0.05, 0.05);
or this rotates the door.
door1 = GetEnt("door1", "targetname");
door1 RotatePitch( -5, 0.26, 0.15, 0.1 );
use a script origin to get coordinates
**MoveTo((coordinate, coordinate, coordinate), 0.5, 0.05, 0.05);
0.5=The time to move the entity in seconds
0.05=The time spent accelerating
0.05=The time spent decelerating
RotatePitch( -5, 0.26, 0.15, 0.1 );
-5=The new pitch angle in degrees
0.26=The time to rotate in seconds
0.15=The time spent accelerating in seconds
0.1=The time spent decelerating in seconds
info from - http://www.zeroy.com/Script/
idk that didn't seem to work and idk why
void <script_model, script_origin or script_brushmodel> MoveTo(<point>,<time>,[acceleration time],[deceleration time])
[MANDATORY] <point> The point to move the entity to
[MANDATORY] <time> The time to move the entity in seconds
[OPTIONAL] [acceleration time] The time spent accelerating
[OPTIONAL] [deceleration time] The time spent decelerating
CATEGORY:
CLIENT/SERVER: Server
SUMMARY: Move this entity to the given point.
EXAMPLE: dummy MoveTo( dest_org, .5, .05, .05 )
void <script_model, script_origin or script_brushmodel> MoveX(<point>,<time>,[acceleration time],[deceleration time])
[MANDATORY] <point> The x value to move the entity to, as a floating point number
[MANDATORY] <time> The time to move the entity in seconds
[OPTIONAL] [acceleration time] The time spent accelerating in seconds
[OPTIONAL] [deceleration time] The time spent decelerating in seconds
CATEGORY:
CLIENT/SERVER: Server
SUMMARY: Move this entity to the given world x value
EXAMPLE: train MoveX( -4400, 60, 15, 20 )
void <script_model, script_origin or script_brushmodel> MoveY(<point>,<time>,[acceleration time],[deceleration time])
[MANDATORY] <point> The y value to move the entity to, as a floating point number
[MANDATORY] <time> The time to move the entity in seconds
[OPTIONAL] [acceleration time] The time spent accelerating in seconds
[OPTIONAL] [deceleration time] The time spent decelerating in seconds
CATEGORY:
CLIENT/SERVER: Server
SUMMARY: move this entity to the given world y value
EXAMPLE: hangardoor MoveY( 320, 10 )
void <script_model, script_origin or script_brushmodel> MoveZ(<point>,<time>,[acceleration time],[deceleration time])
[MANDATORY] <point> The z value to move the entity to, as a floating point number
[MANDATORY] <time> The time to move the entity in seconds
[OPTIONAL] [acceleration time] The time spent accelerating in seconds
[OPTIONAL] [deceleration time] The time spent decelerating in seconds
CATEGORY:
CLIENT/SERVER: Server
SUMMARY: Move this entity to the given world z value
void <script_model, script_origin or script_brushmodel> RotatePitch(<pitch angle>,<time>,[acceleration time],[deceleration time])
[MANDATORY] <pitch angle> The new pitch angle in degrees
[MANDATORY] <time> The time to rotate in seconds
[OPTIONAL] [acceleration time] The time spent accelerating in seconds
[OPTIONAL] [deceleration time] The time spent decelerating in seconds
CATEGORY:
CLIENT/SERVER: Server
SUMMARY: Rotate this entity to the given pitch
EXAMPLE: treeorg RotatePitch( -5, 0.26, 0.15, 0.1 )
void <script_model, script_origin or script_brushmodel> RotateTo(<angles>,<time>,[acceleration time],[deceleration time])
[MANDATORY] <angles> The new world angle to rotate to
[MANDATORY] <time> The time to rotate in seconds
[OPTIONAL] [acceleration time] The time spent accelerating in seconds
[OPTIONAL] [deceleration time] The time spent decelerating in seconds
CATEGORY:
CLIENT/SERVER: Server
SUMMARY: Rotate this entity to the given world rotation value
EXAMPLE: shutter RotateTo( (shutter.angles[0], newYaw, shutter.angles[2]), newTime )
void <script_model, script_origin or script_brushmodel> RotateVelocity(<rotate velocity>,<time>,[acceleration time],[deceleration time])
[MANDATORY] <rotate velocity> The rotational velocity to rotate
[MANDATORY] <time> The time to rotate in seconds
[OPTIONAL] [acceleration time] The time spent accelerating in seconds
[OPTIONAL] [deceleration time] The time spent decelerating in seconds
CATEGORY:
CLIENT/SERVER: Server
SUMMARY: Rotate this entity at a particular velocity for a given time
EXAMPLE: self RotateVelocity( (x,y,z), 12 )
void <script_model, script_origin or script_brushmodel> RotateYaw(<yaw angle>,<time>,[acceleration time],[deceleration time])
[MANDATORY] <yaw angle> The new yaw angle in degrees
[MANDATORY] <time> The time to rotate in seconds
[OPTIONAL] [acceleration time] The time spent accelerating in seconds
[OPTIONAL] [deceleration time] The time spent decelerating in seconds
CATEGORY:
CLIENT/SERVER: Server
SUMMARY: Rotate this entity to the given yaw
function monitorDoorEvent() {
//Grabs the script_model we placed inside out map
door = GetEnt("door_example", "targetname");
//Waits for the notify or you can just remove this and run the script when ready.
level waittill("event_door_move");
//Moves the door along the X axis from initial point to 852.25 it will take it 1 second to do so.
door MoveX(852.25, 1); //MoveX(pointX, time), MoveTo(newOrigin, time)
}