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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - soul-toktzt

Hey everyone,
Can someone help me out a bit?

I created a (probably bad) script with 4 triggers, 3 textures of glass, but all 4 triggers activate at the same time.

https://pastebin.com/2H0CN3kT

I shoot once, all 4 triggers activate, even when i hide the other 3 triggers, it'll go straight to the mantle_on + glass models.
I'd like to have it so that when you shoot once, first texture shows up, shoot again, first one disappears, second apears, etc.
7 years ago
In radiant you would make it a script_model and give it a targetname kvp

In script you would thread a function from main or something, that would use either movez or moveto functions in it with waits. In the docs you can find these functions and what is needed to make them work.

MoveZ
Code Snippet
Plaintext
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
MoveTo
Code Snippet
Plaintext
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 )

use getent, or getentarray if you have more than one, and then thread on each a function to move and wait in a while loop.



Thank you very much :)
7 years ago
Hey everyone!

Anyone knows if it's possible (and how?) to make an model go up like... 125 distance and go back down after 3 seconds?

Thanks in advance!
7 years ago
Did you get it fixed? I have the same problem somehow.
7 years ago
Everytime i turn the power on, it gives me an connection interrupted.
Anyone knows a fix for this?

Thanks in advance! :)
7 years ago
Loading ...