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

Members Online

»
0 Active | 62 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 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 subscribe
Author Topic: Scripting mistake: bad syntax
h0lyguy
General Member
Since: Jan 2, 2013
Posts: 2
Last: Feb 23, 2013
[view latest posts]
Level 0
Category: CoD2 Scripting
Posted: Saturday, Feb. 23, 2013 01:09 pm
attachment: image(126.2Kb)
Hey guys,

i am struggling today with an error i couldn't fix.

I've created 3 entities:
1 brushmodel + 2 triggers
The brushmodel is made of spikes going up,
the first trigger is a trigger hurt (dmg 1000) that is supposed to go up along with the spikes,
and the last trigger is a mutltiple, trigger the whole trap.

Thing is, i get this error while running the map in Devloper1
(picture)

And the script is there:
(dt1= death trap 1 >brushmodel
death=trigger hurt
trig= trigger multiple
)
Code:

dt1()
{
dt1=getent("dt1","targetname");
death=getent("d1","targetname");
trig=getent("tdt1","targetname")

while(true)
{

trig waittill ("trigger");

dt1 movez (80,1);
death movez (80,1);
dt1 waittill ("movedone");
death waittill ("movedone");
wait(2);
dt1 movez (-80,1);
death movez (-80,1);
dt1 waittill ("movedone");
death waittill ("movedone");

}
}
Share |
FzBr.d4rk
General Member
Since: Jan 23, 2011
Posts: 86
Last: Jun 7, 2016
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Saturday, Feb. 23, 2013 01:17 pm
you forgot the ";" in the end of the line.

Code:

dt1()
{
dt1=getent("dt1","targetname");
death=getent("d1","targetname");
trig=getent("tdt1","targetname");

while(true)
{

trig waittill ("trigger");

dt1 movez (80,1);
death movez (80,1);
dt1 waittill ("movedone");
death waittill ("movedone");
wait(2);
dt1 movez (-80,1);
death movez (-80,1);
dt1 waittill ("movedone");
death waittill ("movedone");
}
}
Share |
h0lyguy
General Member
Since: Jan 2, 2013
Posts: 2
Last: Feb 23, 2013
[view latest posts]
Level 0
Category: CoD2 Scripting
Posted: Saturday, Feb. 23, 2013 09:48 pm
what a stupid mistake...
thanks anyway for that fix,
was too blind to see it
Share |
Restricted Access Topic is Locked 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

»