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

Members Online

»
0 Active | 93 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
Page
Previous Page
subscribe
Author Topic: Triggers and FX
Dibbes65
General Member
Since: Oct 3, 2005
Posts: 89
Last: May 25, 2008
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Thursday, Jul. 27, 2006 05:58 pm
or this dunno:

main()

flubberLamp

door1 = getent("lantren", "targetname");
trig1 = getent("lantren_trigger1", "targetname");
while (1)

trig1 waittill("trigger");
door1 rotateYaw(0,390,2,2);
door1 waittill("rotatedone");
wait (0);
door1 rotateYaw(0,0,2,2);
door1 waittill("rotatedone");
}
Share |
Flubber
General Member
Since: Jun 19, 2006
Posts: 51
Last: Jan 15, 2008
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Thursday, Jul. 27, 2006 06:00 pm
ok did that but now i have another compile eror

Quote:
******* script compile error *******
bad syntax: (file 'maps/mp/flubberlamp.gsc', line 5)
door1 = getent("lantren", "targetname");
*


whats wird is i dont know how the trigger and the lamp connect, i thought you had to connect them somehow in the editor, but now I guess its all done in the script?

edited on Jul. 27, 2006 02:01 pm by Flubber

edited on Jul. 27, 2006 02:04 pm by Flubber
Share |
Dibbes65
General Member
Since: Oct 3, 2005
Posts: 89
Last: May 25, 2008
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Thursday, Jul. 27, 2006 06:03 pm
yes, it's connected in the script by using the targetnames made in the map. but what are you trying to do with the light again?
Share |
Flubber
General Member
Since: Jun 19, 2006
Posts: 51
Last: Jan 15, 2008
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Thursday, Jul. 27, 2006 06:07 pm
ohh ohh, hehe, I dont think I connected them right in the editor, all I have in both of em is

lantren: targetname lantren

Trigger: targetname lantren_trigger1

edited on Jul. 27, 2006 02:07 pm by Flubber
Share |
BBull17
General Member
Since: Sep 11, 2005
Posts: 3
Last: Dec 30, 2006
[view latest posts]
Level 0
Category: CoD2 MP Mapping
Posted: Thursday, Jul. 27, 2006 06:08 pm
Flubber writes...
Quote:
ok did that but now i have another compile eror

Quote:
******* script compile error *******
bad syntax: (file 'maps/mp/flubberlamp.gsc', line 5)
door1 = getent("lantren", "targetname");
*


whats wird is i dont know how the trigger and the lamp connect, i thought you had to connect them somehow in the editor, but now I guess its all done in the script?

edited on Jul. 27, 2006 02:01 pm by Flubber

edited on Jul. 27, 2006 02:04 pm by Flubber


I believe you got this error because you have flubberlamp in your script, try deleting the word flubberlamp and try again.
Share |
Dibbes65
General Member
Since: Oct 3, 2005
Posts: 89
Last: May 25, 2008
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Thursday, Jul. 27, 2006 06:09 pm
For the whatever it is:

Key: targetname
Value: lantren

And the trigger:

Key: targetname
Value: lantren_trigger1

Hope it helps...[thumbs_up]
Share |
Flubber
General Member
Since: Jun 19, 2006
Posts: 51
Last: Jan 15, 2008
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Thursday, Jul. 27, 2006 06:14 pm
omg, one lil thing after another.... [sad]

Quote:
******* script runtime error *******
cannot cast undefined to bool: (file 'maps/mp/gametypes/_menus.gsc', line 13)
if(!level.xenon)
*
called from:
(file 'maps/mp/gametypes/dm.gsc', line 84)
thread maps\mp\gametypes\_menus::init();
*
called from:
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 15)
[[level.callbackStartGameType]]();
*
started from:
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 10)
CodeCallback_StartGameType()
*
************************************
Share |
Dibbes65
General Member
Since: Oct 3, 2005
Posts: 89
Last: May 25, 2008
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Thursday, Jul. 27, 2006 06:22 pm
dunno, never had that error although i have seen it once...
Share |
Restricted Access Topic is Locked
Page
Previous Page
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

»