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

Members Online

»
0 Active | 117 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

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, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked 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 01:31 pm
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: 482
Last: Jun 28, 2013
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 MP Mapping
Posted: Wednesday, Aug. 1, 2012 06:20 pm
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 09: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 Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 MP 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

»