Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player


Home Forums {LSB} Stats {LSB} Members {LSB} Events Profile

{LSB} Face Book   
 

{LSB} User Info   
 
Good afternoon 
Anonymous


Register
Lost Password
Username
Password
Security Code:
Security Code
Type Security Code:
 Online:   
Member(s):

Guest(s):
01. Guest
02. Guest
03. Guest

{LSB} Donations   
 
Make donations with PayPal!
View Contributions

September´s Goal: $250.00
Goal Date:   Sep 30
Received: $0.00
Left to go: $250.00

©
Donations

{LSB} Forum   
 
Tutorial Help
Last post by {LSB} StealthSniper in Support on 09/05/2010 09:39 am
COD: Black Ops - No Public Server Files
Last post by {LSB.r} Lobo in News on 09/04/2010 05:49 pm
sniper skins
Last post by BADSCHICKEN in Mapping / Modding / Scripts on 09/04/2010 01:07 pm
New release from 10/01/10
Last post by {LSB} Regenmeister in News on 09/02/2010 03:07 pm
Interview with Josh Ohlin @ Gamescom 2010
Last post by {LSB.r} odog in News on 08/31/2010 02:26 pm
Tell me how this maks you feel
Last post by {LSB.r} joekillu in Small Talk on 08/30/2010 03:52 pm
HAPPY.......BIRTHDAY......HAADWARREN
Last post by {LSB} ScooterVauto in News on 08/29/2010 12:24 am
Star Wars fans!!
Last post by {LSB.r} Lobo in Small Talk on 08/26/2010 09:51 am
For all those mortobike nuts!
Last post by {LSB} Rock2zep in Small Talk on 08/24/2010 10:18 pm

{LSB} Friends   
 
                                                                      



Strange Prob with Elevators

 
Post new topic   Reply to topic   printer-friendly view    Linked Sniper Brotherhood Forum Index -> Mapping / Modding / Scripts
View previous topic :: View next topic  
Author Message
R1-mini




Joined: Apr 30, 2008
Posts: 4
Location: Coventry ( UK )

Status: Offline
PostPosted: Sat Jan 23, 2010 4:50 pm Post subject: Strange Prob with Elevators Reply with quote

Hi Guys
Hope all is Doing Good and are Well
Me again with a problem  Twisted Evil

Ive added 2 Elevators to a test map
Both of them work fine apart from a strange thing
when the right Elevator is up and you go to use the left 1, The left Elevator goes down when it should go up? And it also happens to the right Elevator when you use the left
But when you use them both on there own they are fine once they go back to there starting positions and then go to use the other Elevator



Is there anything i can do to stop this?
The tut and script i used was from the RGN site
I dont know a great deal about scripting and what differant things do and how they go in the .gsc
Below is the code i used

main()
{
level.elevatorDown = true;
level.elevatorMoving = false;
thread elevator_start();
}

elevator_start()
{
elevator = getentarray ("switch","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 ("elevator", "targetname");
level.elevatorMoving = true;
speed = 2;
height =160;
if (level.elevatorDown)
{
elevatormodel playsound ("elevator");
elevatormodel movez (height, speed);
elevatormodel waittill ("movedone");
level.elevatorDown = false;
}
else
{
elevatormodel playsound ("elevator");
elevatormodel movez (height - (height * 2), speed);
elevatormodel waittill ("movedone");
level.elevatorDown = true;
}
level.elevatorMoving = false;
}

Thanx in advance for any help

Andy = R1-mini
Back to top
View user's profile Send private message MSN Messenger
Ratt




Joined: Aug 17, 2006
Posts: 556
Location: KENTUCKY, USA

Status: Offline
PostPosted: Sat Jan 23, 2010 5:09 pm Post subject: Re: Strange Prob with Elevators Reply with quote

I'm no modder, but it looks to me that you have to give the elevators separate names, for each to do it's own thing, ei: one code per elevator.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
R1-mini




Joined: Apr 30, 2008
Posts: 4
Location: Coventry ( UK )

Status: Offline
PostPosted: Sat Jan 23, 2010 5:18 pm Post subject: Re: Strange Prob with Elevators Reply with quote

Hi Ratt

I did that 2 .gsc files
And i called one Elevator and the other one Elevator1
And i did the same for the Triggers

Scripting is a minefield to me
Just starting myself really Embarassed
Back to top
View user's profile Send private message MSN Messenger
R1-mini




Joined: Apr 30, 2008
Posts: 4
Location: Coventry ( UK )

Status: Offline
PostPosted: Sat Jan 23, 2010 8:20 pm Post subject: Re: Strange Prob with Elevators Reply with quote

Hi guys
Thanx for your help
Got it sorted cheers
R1
Back to top
View user's profile Send private message MSN Messenger
Razor19119




Joined: Jul 04, 2010
Posts: 8


Status: Offline
PostPosted: Sat Jul 17, 2010 1:13 am Post subject: Re: Strange Prob with Elevators Reply with quote

we have several mappers in our clan... if u need help on scripts and such.. get ahold of me .. and ill put ya thru to em..


Raz
Back to top
View user's profile Send private message
Display posts from previous:
Post new topic  Reply to topic   printer-friendly view Linked Sniper Brotherhood Forum Index ->  Mapping / Modding / Scripts Time synchronized with the forum server time
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Powered By: phpBB © 2001 - 2006 phpBB Group

Original css-gs-template05 by Stafis of psd-resources.de ©

Conversion to nuke evolution by Mangee ©


Spambot Killer
Site Map

[News Feed] [Forums Feed] [Downloads Feed] [Web Links Feed] Powered by HTML Purifier[Validate robots.txt]


PHP-Nuke Copyright © 2006 by Francisco Burzi.
All logos, trademarks and posts in this site are property of their respective owners, all the rest © 2006 by the site owner.
Powered by Nuke-Evolution.

[ Page Generation: 0.65 Seconds | Memory Usage: 8.87 MB | DB Queries: 55 ]

Do Not Click