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

Members Online

»
0 Active | 8 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 subscribe
Author Topic: how to turn my train
liltc64
General Member
Since: Feb 12, 2007
Posts: 906
Last: Oct 22, 2012
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Friday, Feb. 29, 2008 04:06 am
im trying to learn how to turn my train like it can go forward or back but then it needs to turn left or right and i dont know how to make it turn right or left
main()
{
thread train_slider ();
}

train_slider()
{
train=getent("train","targetname");
trig=getent("start_train","targetname");
while(1)
{
trig waittill ("trigger");
//wait (4);
train movex (464,8,0.3,0.3);
train waittill ("movedone");
wait (4);
//trig waittill ("trigger");
train movex(-464,8,0.3,0.3);
train waittill ("movedone");

}
}


edited on Feb. 28, 2008 11:07 pm by liltc64
Share |
paco3346
General Member
Since: Feb 19, 2008
Posts: 40
Last: Feb 29, 2008
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Friday, Feb. 29, 2008 04:15 am
quite simple really, use to rotate command. very similiar to the use.


rotate (x,y,z);
waittill ("rotatedone");

something like that

if you need further help let me know, I have gotten pretty good at this scripting stuff
Share |
Garthogg
General Member
Since: Jan 29, 2008
Posts: 21
Last: Feb 6, 2009
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Friday, Apr. 11, 2008 05:59 am
Hi...,

I prefet to use an origin, because if u use that ur script brushmodel doesnt spot when ur "movex" done:P
U could find a turtoial here:

http://www.modsonline.com/Tutorials-read-121.html
Share |
TexasRebel
General Member
Since: May 1, 2006
Posts: 373
Last: Aug 20, 2013
[view latest posts]
Level 5
Category: CoD2 Scripting
Posted: Friday, Apr. 11, 2008 04:59 pm
Depends on what type turn your looking for. Are you just wanting it to turn on the spot and head back down same track, or do you want it on a complete circuited track where the turns look realistic.
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

»