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

Turning on power with scripting

broken avatar :(
Created 10 years ago
by i3ick
0 Members and 1 Guest are viewing this topic.
1,261 views
broken avatar :(
×
broken avatar :(
Location: at
Date Registered: 7 October 2016
Last active: 9 years ago
Posts
19
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
i3ick's Groups
i3ick's Contact & Social Links
Hi, I'd like to turn on the power without using triggers, from my script. How would I go about doing that?
I tried somehow incorporating _zm_power.gsc but didn't quite figure out how to get it to work.
It's probably simple and I'm just not seeing it. Thanks!
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 12 September 2016
Last active: 9 months ago
Posts
305
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
×
reckfullies's Groups
reckfullies's Contact & Social LinksReckfulliesReckfullies
Hi, I'd like to turn on the power without using triggers, from my script. How would I go about doing that?
I tried somehow incorporating _zm_power.gsc but didn't quite figure out how to get it to work.
It's probably simple and I'm just not seeing it. Thanks!

Looked through _zm_power.gsc and found this function, have no idea if it will work but you should try it.

Code Snippet
Plaintext
#using scripts\zm\_zm_power;

function init()
{
        zm_power::set_global_power(true) // Can be either "true" or "false", "true" will turn all power on and "false" will turn all power off
}

 
Loading ...