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

Members Online

»
0 Active | 7 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 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: need help with door.gsc
101stairborne
General Member
Since: Aug 21, 2004
Posts: 35
Last: Oct 15, 2007
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Wednesday, Apr. 11, 2007 10:58 am
hello i have a door but it open and close automatic. can someone give me a good door.gsc. please! for cod2

edited on Apr. 11, 2007 06:59 am by 101stairborne
Share |
101stairborne
General Member
Since: Aug 21, 2004
Posts: 35
Last: Oct 15, 2007
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Wednesday, Apr. 11, 2007 12:00 pm
this is myn normdoor.gsc ...

main()
{
thread normdoor_open ();
}

normdoor_open()
{
normdoor=getent("normdoor","targetname");
trig=getent("push","targetname");
while(1)
{
trig waittill ("trigger");
normdoor rotateto( (0,-90,0),2);
normdoor waittill ("rotatedone");
wait (3);
//trig waittill ("trigger");
normdoor rotateto( (0,0,0),2);
normdoor waittill ("rotatedone");
}
}

edited on Apr. 11, 2007 08:01 am by 101stairborne
Share |
WHC_Grassy
General Member
Since: Apr 20, 2005
Posts: 1426
Last: Aug 25, 2007
[view latest posts]
Level 8
Category: CoD2 Scripting
Posted: Wednesday, Apr. 11, 2007 12:36 pm
Remove the two // in front of this line.
//trig waittill ("trigger");
Share |
101stairborne
General Member
Since: Aug 21, 2004
Posts: 35
Last: Oct 15, 2007
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Wednesday, Apr. 11, 2007 01:08 pm
still dont work

main()
{
thread normdoor_open ();
}

normdoor_open()
{
normdoor=getent("normdoor","targetname");
trig=getent("push","targetname");
while(1)
{
trig waittill ("trigger");
normdoor rotateto( (0,-90,0),2);
normdoor waittill ("rotatedone");
wait (3);

trig waittill ("trigger");
normdoor rotateto( (0,0,0),2);
normdoor waittill ("rotatedone");
}
}

edited on Apr. 11, 2007 09:09 am by 101stairborne
Share |
MadBence
General Member
Since: Apr 15, 2005
Posts: 19
Last: May 2, 2007
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Wednesday, Apr. 11, 2007 01:32 pm
You have script_brushmodel with "targetname" "normdoor", and trigger_use with "targetname" "push"?
Share |
101stairborne
General Member
Since: Aug 21, 2004
Posts: 35
Last: Oct 15, 2007
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Wednesday, Apr. 11, 2007 01:53 pm
yeah i have
Share |
{GITS}Cleaner
General Member
Since: May 23, 2006
Posts: 778
Last: Apr 23, 2011
[view latest posts]
Level 7
Category: CoD2 Scripting
Posted: Wednesday, Apr. 11, 2007 01:58 pm
There's some gsc files in this download that might help you.

http://www.modsonline.com/Downloads-full-3469.html
Share |
ER-me-ER
General Member
Since: Jul 7, 2004
Posts: 116
Last: Jun 10, 2007
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Wednesday, Apr. 11, 2007 02:07 pm
I sugest that ou read the many turtrials on this
Share |
Scharfschuetze
General Member
Since: Dec 23, 2006
Posts: 162
Last: Jul 7, 2011
[view latest posts]
Level 4
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Thursday, Apr. 12, 2007 09:56 am
What does the script do, anything at all?


[sniper]



Scharfschütze
Amerikanischer Soldat der Niederlage, sind Sie tot

My Radiant Manual - Work In Progress
Share |
101stairborne
General Member
Since: Aug 21, 2004
Posts: 35
Last: Oct 15, 2007
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Thursday, Apr. 12, 2007 12:33 pm
yes myn door open and close automatic. i have seen all tuts on it. i only want from you ppl a door.gsc thats works fine
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

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

»