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

Members Online

»
0 Active | 7 Guests
Online:

LATEST FORUM THREADS

»
Kharkov xmodels
CoD+UO General
Node is floating???
CoD4 SP Mapping
new scripter cod4
CoD4 Scripting
[Release]SP East Prussian ...
CoD2 Map + Mod Releases

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 2
Category: CoD2 MP Mapping
CoD 2 mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access subscribe
Author Topic: elevator trigger
flev93
General Member
Since: Oct 12, 2010
Posts: 21
Last: Jan 20, 2013
[view latest posts]
Level 1
Category: CoD2 MP Mapping
Posted: Wednesday, Aug. 1, 2012 06:31 am
ok so i made an elevator!

when i use just the trigger -> use.
i test my map and it keeps going up and down on its own,

i want it so you must press "f" to call the elevator down(if downstairs) or if your upstairs press "F" and it will come back up,

so i tryed useing trigger -> use_touch -> then pressed "N" typed (targetname - elevator! for downstairs trigger and upstairs, but now none of the triggers work?

help?
btw ive made the script works find, just want the elevator on a trigger where u must press "F" to use, and to go up and down:)
Share |
serthy
General Member
Since: Sep 8, 2010
Posts: 480
Last: Apr 15, 2013
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 MP Mapping
Posted: Wednesday, Aug. 1, 2012 11:20 am
lets have a look in my glass-sphere... i see that there are many problems, and it seems to be rainy the next days :p

no back2topic, we cannot help you without having your script :) so post your script in here and we help you
Share |
flev93
General Member
Since: Oct 12, 2010
Posts: 21
Last: Jan 20, 2013
[view latest posts]
Level 1
Category: CoD2 MP Mapping
Posted: Wednesday, Aug. 1, 2012 02:53 pm
ok so i made a simple elevator to learn to script it for 2 levels, just to learn before i put it in my map, i want it to start from bottom floor, then just go to top floor, i want a trigger and bottom so you have to press "F" to go up, i want the elevator to stay at top, unless a player pressed the trigger at the top to go down, or if a player calls it at bottom, atm it just keeps going up and down on its own, ive made two triggers, the use_touch ones! here is my scripts!

this one is my GSC file:-

main()
{
maps\mp\_load::main();

setExpFog(0.0001, 0.55, 0.6, 0.55, 0);
// setCullFog(0, 16500, 0.55, 0.6, 0.55, 0);
ambientPlay("ambient_france");

game["allies"] = "american";
game["axis"] = "german";
game["attackers"] = "allies";
game["defenders"] = "axis";
game["american_soldiertype"] = "normandy";
game["german_soldiertype"] = "normandy";

setCvar("r_glowbloomintensity0", ".25");
setCvar("r_glowbloomintensity1", ".25");
setcvar("r_glowskybleedintensity0",".3") ;

maps\mp\elevator::main();

}


then this is my elevator GSC file:-

main()
{
thread elevator();
}

elevator()
{
elevator=getent("elevator","targetname");
trig=getent("trig_elevator","targetname");
while(1)
{
trig waittill ("trigger");
elevator movez (500,7,1.9,1.9);
elevator waittill ("movedone");
wait(1);
elevator movez (-500,7,1.9,5);
elevator waittill ("movedone");
}
}

thanks
Share |
Restricted Access Restricted Access subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 MP Mapping

Latest Syndicated News

»
Codutility is for sale!
Seems like a plan to save Codutility ..Quote:Well guys I heard what you said...
Codutility is for sale!
Well as modding dies, so does the sites that support it.. Its a sad sad day,...
Codutility is for sale!
Quote:Codutility is for sale! Yes, you read well. Codutility ( sites/do...
Why console gaming is dying
Quote:Consider this: Dedicated gaming sales — including living-room consoles...
Devs: Games are being dumb...
Click 'read more' to view the contents of this post.

Partners & Friends

»