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

Die rise elevator help!

broken avatar :(
Created 10 years ago
by Chunkdogg9
0 Members and 1 Guest are viewing this topic.
1,944 views
broken avatar :(
×
broken avatar :(
Donator <3
Location: auAustralia
Date Registered: 20 August 2012
Last active: 4 years ago
Posts
337
Respect
Forum Rank
Perk Hacker
Primary Group
Community Mapper
My Groups
More
My Contact & Social Links
More
×
Chunkdogg9's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Chunkdogg9's Contact & Social LinksChunkdogg9Chunkdogg00Chunkdogg9
Would someone like to help me out with a script that makes my elevator go up and down without buttons like in die rise.

So it goes down and up every minute and half?

Thank you

- Chunkdogg9
broken avatar :(
×
broken avatar :(
drago
Location: mx
Date Registered: 5 July 2013
Last active: 4 years ago
Posts
941
Respect
Forum Rank
The Decider
Primary Group
Member
My Contact & Social Links
More
×
jjbradman's Groups
jjbradman's Contact & Social Linksjjbradmanjjbradmanjjbradman
i havent tested this but try it lol xP
Code Snippet
Plaintext
#include common_scripts\utility; 
#include maps\_utility;
#include maps\_zombiemode_utility;

init() // keep in mind that the elevator starts in the up position in this script
{
level.elevator = getentarray("elevator", "targetname");
level. speed = 10; // how much time in secs you want it to take to get to the 200 units
level.height = -200; //how many units you want it to move
thread elevator_think();
}

elevator_think()
{
thread go_down();
wait 60;
thread go_up();
wait 60;
thread elevator_think();
}

go_down();
{
for( i = 0; i < level.elevator.size; i++ )
{
level.elevator[i] movez (level.height, level.speed);
         }
}

go_up()
{
for( i = 0; i < level.elevator.size; i++ )
{
level.elevator movez (level.height - (level.height * 2), level.speed);
         }
}
broken avatar :(
×
broken avatar :(
Donator <3
Location: auAustralia
Date Registered: 20 August 2012
Last active: 4 years ago
Posts
337
Respect
Forum Rank
Perk Hacker
Primary Group
Community Mapper
My Groups
More
My Contact & Social Links
More
×
Chunkdogg9's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Chunkdogg9's Contact & Social LinksChunkdogg9Chunkdogg00Chunkdogg9
Thanks now I gotta figure out how to get get it to all work..
broken avatar :(
×
broken avatar :(
Location: se
Date Registered: 30 July 2013
Last active: 3 weeks ago
Posts
517
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
Ege115's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Ege115's Contact & Social LinksEge115
And you also have to link the perk machines to the elevators so they move with the elevator.
Place the perks in the elevators.
Give the whole perk machine prefabs in radiant this KVP,
Code Snippet
Plaintext
targetname - perk
And let this small script do the job for you, if it works ;) (untested)

Code Snippet
Plaintext
perk = GetEntArray ("perk", "targetname");

for( i = 0; i < perk.size; i++ )
{
perk[i] enablelinkto();
perk[i] linkto ("elevator");
}

Edit: Well if you are going to have the perks in the elevator as well, but just in case ;).
Last Edit: April 03, 2014, 03:25:24 pm by Ege115

 
Loading ...