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

Members Online

»
0 Active | 10 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
Category: CoD Mapping
CoD mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: A Moving boat?
raymens
General Member
Since: Jul 3, 2005
Posts: 198
Last: Aug 22, 2008
[view latest posts]
Level 4
Category: CoD Mapping
Posted: Friday, Oct. 7, 2005 05:33 pm
hi

i know that it is possible to let a boat move from a location to another location with a trigger use.
but does someone can help me with the script i am completely noob with scripting.

plz help me [casanova]
Share |
batistablr
Preferred PLUS Member
Since: Jul 13, 2005
Posts: 2066
Last: Dec 23, 2015
[view latest posts]
Level 8
Forum Moderator
Im a fan of MODSonair
Category: CoD Mapping
Posted: Friday, Oct. 7, 2005 06:31 pm
ummmm well i dont exaxtley know how to but i know a lil bit but if u can talk to the guy that vreated the mpa omaha_beach_no_fog he made it so wehn u are allies u start at a big ship thtne jmup into small boats then the bota move ot the land[idea]
Go ahead... You Play I Mod : MODSonline.com
Support Modsonline by becoming a PREFERRED MEMBER today
Have you heard the MODSonair Podcast?: www.modsonair.com
MODSonair is a weekly podcast bringing you the news from a modders perspective. Tune in every Sunday at 12pm EST to listen LIVE.
Share |
raymens
General Member
Since: Jul 3, 2005
Posts: 198
Last: Aug 22, 2008
[view latest posts]
Level 4
Category: CoD Mapping
Posted: Saturday, Oct. 8, 2005 10:49 am
this is my script i use , but it is all the time crashing. Bad syntax error.

main()
{

thread boat_slider ();
}

boat_slider()
{
boat=getent("ship1","targetname");
trig=getent("ship1switch","targetname");
while(1)
{
trig waittill ("trigger");
boat movez (-276,5,1,1);
boat waittill ("movedone");
}

{

thread boat_mover ();
}

boat_mover()

boat=getent("ship1","targetname");
trig=getent("ship1release","targetname");
while(1)
{
trig waittil ("trigger");
boat movez (-276,5,1,1);
boat waittill ("movedone");
}
}
[banghead][cry][crazy][confused]
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD Mapping
Posted: Saturday, Oct. 8, 2005 11:07 am
Start CoD in developer mode. This will give you more info about the error. (Like which line exactly is causing the error.

To start CoD in developer mode

Rightclick on your CoD shortcut on your desktop
In "Target" add +set developer 1 behind the ".....\CoDMP.exe"
So it should look like this: ".....\CoDMP.exe" +set developer 1
Press "OK"
Start CoD
type /devmap yourmapname in the console.

This works for UO and SP too.. just add it to the right shortcut.
Share |
raymens
General Member
Since: Jul 3, 2005
Posts: 198
Last: Aug 22, 2008
[view latest posts]
Level 4
Category: CoD Mapping
Posted: Saturday, Oct. 8, 2005 01:48 pm
this is my script now: it doesnt work 2

main()
{

thread ship1_release ();
}

ship1_release()
{
boat=getent("ship1","targetname");
trig=getent("ship1switch","targetname");
while(1)
{
trig waittill ("trigger");
boat movez ("-276,2,1,1");
boat waittill ("movedone");
thread ship1_beforerotate();
}


ship1_beforerotate()
{
boat movey ("250,5,1,1");
boat waittill ("movedone");
thread ship1_rotate();
}


ship1_rotate()
{
boat rotateto ( (0, 0, 90), 1);
boat waittill ("rotatedone");
}
}



plz tell me what is wrong [sad]
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD Mapping
Posted: Saturday, Oct. 8, 2005 01:53 pm
Close your ship_release() function with a }.

And your ship_rotate() function has a } too many.

edited on Oct. 8, 2005 09:06 am by The_Caretaker
Share |
raymens
General Member
Since: Jul 3, 2005
Posts: 198
Last: Aug 22, 2008
[view latest posts]
Level 4
Category: CoD Mapping
Posted: Saturday, Oct. 8, 2005 04:28 pm
it still doesnt work :([cry][banghead][confused]
i have this now :

Quote:
main()
{

thread ship1_release ();

}
ship1_release()

{
boat=getent("ship1","targetname");
trig=getent("ship1switch","targetname");
while(1)

{

trig waittill ("trigger");
boat movez (-276,2,1,1);
boat waittill ("movedone");
thread ship1_beforerotate()

}

ship1_beforerotate()
{
boat movey (250,5,1,1);
boat waittill ("movedone");
thread ship1_rotate();
}


ship1_rotate()
{
boat rotateto ( (0, 0, 90), 1);
boat waittill ("rotatedone");
}


plz help me, isnt there anybody who can fix this horrible problem[casanova]
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD Mapping
Posted: Saturday, Oct. 8, 2005 04:36 pm
The_Caretaker writes...
Quote:
Close your ship_release() function with a }.
Share |
raymens
General Member
Since: Jul 3, 2005
Posts: 198
Last: Aug 22, 2008
[view latest posts]
Level 4
Category: CoD Mapping
Posted: Saturday, Oct. 8, 2005 05:05 pm
it says bad syntax line 13
{

plz help me [cry]
Share |
RRRScorpion
General Member
Since: Feb 2, 2004
Posts: 169
Last: Dec 3, 2005
[view latest posts]
Level 4
Category: CoD Mapping
Posted: Saturday, Oct. 8, 2005 08:10 pm
What Ct keeps trying to say to you is -

Code:

main()
{

thread ship1_release ();

}
ship1_release()

{
boat=getent("ship1","targetname");
trig=getent("ship1switch","targetname");
while(1)

{

trig waittill ("trigger");
boat movez (-276,2,1,1);
boat waittill ("movedone");
thread ship1_beforerotate()
}
} 

ship1_beforerotate()
{
boat movey (250,5,1,1);
boat waittill ("movedone");
thread ship1_rotate();
}


ship1_rotate()
{
boat rotateto ( (0, 0, 90), 1);
boat waittill ("rotatedone");
}


Spot the difference?

[cool]
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty : CoD 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

»