Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 10 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty
Category: CoDUO Mapping
CoD United Offensive mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Elevator Goes out of my skybox!
supersword
General Member
Since: Jul 28, 2004
Posts: 1989
Last: Nov 22, 2011
[view latest posts]
Level 8
Forum Moderator
Im a fan of MODSonair
Category: CoDUO Mapping
Posted: Thursday, Jun. 16, 2005 05:15 pm
Ok guys, When I push the button to make my skybox come down, I find that it moves out of the skybox....


Here is my .gsc,

main() {
level.elevatorDown = true; // elevator starts at bottom: true/false
level.elevatorMoving = false; // elevator is not currently moving
thread elevator_start();
}

elevator_start() {
elevator = getentarray ("elevatorswitch","targetname");
if ( isdefined(elevator) )
for (i = 0; i < elevator.size; i++)
elevator thread elevator_think();
}

elevator_think() {
while (1) {
self waittill ("trigger");
if (!level.elevatorMoving)
thread elevator_move();
}
}

elevator_move() {
elevatormodel = getent ("elevatormodel", "targetname");
level.elevatorMoving = true;
speed = 2;
height = 192;
wait (1);
if (level.elevatorDown) { // moves to top
elevatormodel moveZ (2336,20,9,10);
elevatormodel waittill ("movedone");
level.elevatorDown = false;
}
else { // moves to bottom
elevatormodel moveZ (2336,20,9,10);
elevatormodel waittill ("movedone");
level.elevatorDown = true;
}
level.elevatorMoving = false;
}



Thanks,

Supersword
Share |
DadofAzz
General Member
Since: May 24, 2005
Posts: 1233
Last: Oct 17, 2009
[view latest posts]
Level 8
MODSCON
Category: CoDUO Mapping
Posted: Thursday, Jun. 16, 2005 05:49 pm
Hi ss, hows it going m8?

I think you mean to mean your elevator to come down and not your skybox !! I think its just a typo.

So just adjust the first figure in the line
Quote:
elevatormodel moveZ (2336,20,9,10);


To a lesser amount untill the elevator moves to the position you require.
You will need to change the return to the same amount.
Also, as you change the distance the speed will change so you will need to adjust the second number in the line to suit. The lower the figure the faster the elevator will travel.
Share |
Toasty
General Member
Since: Aug 7, 2004
Posts: 867
Last: Jun 26, 2005
[view latest posts]
Level 7
Category: CoDUO Mapping
Posted: Thursday, Jun. 16, 2005 05:49 pm
not really sure but make sure this line is correct to your map...

elevatormodel moveZ (2336,20,9,10);

this is where your elevator is moving too, if thats the stock one then theres a big chance thats why its not working
Share |
supersword
General Member
Since: Jul 28, 2004
Posts: 1989
Last: Nov 22, 2011
[view latest posts]
Level 8
Forum Moderator
Im a fan of MODSonair
Category: CoDUO Mapping
Posted: Thursday, Jun. 16, 2005 06:30 pm
Well you posted the same thing at the same time, so Iwill give it a try!

Thanks

@DadofAzz

Im very good thanks :)
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty : CoDUO Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»