MODSonline
  Welcome Guest to MODSonline Home | Forums | Register | Login
Main-Menu
Home
Login
Register
Add Download
Add News
Add Tutorial *
Forums

Advertise
Affiliate Store US *
Affiliate Store UK *
Affiliate Store CA *
Angry Letter Generator
Avatar Upload
Calendar of Games
Contact
Downloads
FAQs
Forums
Member List
Member Projects
News
News Grabber *
Policy
Polls
Private Messages
Reviews
Screenshot Gallery
Search
Servers - Game
Store - Shirts *
Subscribe
Topics
Tutorials
Weblinks
Wiki *
Tutorials
CoD Mapping
CoDUO Mapping
CoD2 Mapping
CoD4 Mapping
CoDWW Mapping
CoD FAQs
HL2 Mapping
HL2 FAQs
SOF1 Mapping
Crysis Mapping
Q4 Mapping
Doom 3 Mapping
Doom 3 FAQs
UT2K3 Mapping
SOF2 Mapping
SOF2 FAQs

Lightray Modeling
General Modeling
General Modding
Adobe Photoshop
Common Mapping Errors

Readme.txt Generator
Members-Online
LRSD [Forum]
techno2sl [Forum]
Scorp [Forum]
Morphisnb [Forum]
Smithy [Forum]
Solarx [Tutor]
Wayne16 [Today]
VasiVasiVasi [Tutor]
welshdom [Forum]

9 Members and 21 Guests
Chat MODSonline
0 People Now Chatting
MODSOnline TeamSpeak

download TeamSpeak

In-The-News
Sunday, Nov. 23rd
MODSonair 155 Live
Saturday, Nov. 22nd
CoD:WW Video Tutorial is up!
Friday, Nov. 21st
MODSonair Episode 154
Thursday, Nov. 20th
Call Of Duty World At War - Mod Tools
Wednesday, Nov. 19th
Half-Life 1 $0.98
Latest Poll
Single or Multiplayer maps for World at War?
Single-Player 34.62%
Multiplayer 57.69%
WHAT!? The tools are out? 7.69%
Read More...
4 comments

Newsletter
Name:
Email:
Newsletter Archives
Your Membership
User Name:
Password:
Register.
In The Forums
Zombie Map - Help please
CoD:WW Level Des.. Posts: (19) Views: (161) by techno2sl
maya
CoD2 General Gam.. Posts: (1) Views: (14) by PwN3R
uh prefabs?
CoD:WW Level Des.. Posts: (23) Views: (252) by techno2sl
No sound
CoD:WW Level Des.. Posts: (9) Views: (149) by Rasta
Art of War Central Half-Life 2 Mods for Dummies
CoDWW Download
Forums
MODSonline.com 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, rEdrUmMDK, Foxhound, Wyatt_Earp, Rasta, StrYdeR, The_Caretaker, Cypher2004, batistablr, Welshy
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access subscribe
Author Topic: how to turn my train
liltc64
General Member
Since: Feb 12, 2007
Posts: 73
Last: Aug 11, 2008
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Thursday, Feb. 28, 2008 11:06 pm
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
paco3346
General Member
Since: Feb 19, 2008
Posts: 40
Last: Feb 28, 2008
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Thursday, Feb. 28, 2008 11:15 pm
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
Garthogg
General Member
Since: Jan 29, 2008
Posts: 16
Last: Jun 12, 2008
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Friday, Apr. 11, 2008 01: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
|TM|TexasRebel
General Member
Since: Apr 30, 2006
Posts: 258
Last: Nov 16, 2008
[view latest posts]
Level 5
Category: CoD2 Scripting
Posted: Friday, Apr. 11, 2008 12: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.
Restricted Access Restricted Access subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting
All logos and trademarks and information in this site are property of MODSonline LLC © 2008.
The comments are property of their posters.
RSS news feeds for MODSonline can be found News.php.
Intergi
Partners
modbase.be
Frag Universe
Call of Duty Headquarters
XoXide
CODAddicts - Call of Duty News & Downloads
Battle for Europe COD2
The Firing Box
Ask About
Advertising
Friends
CoD 4 Base
SOF2 Files and Downloads
Volcano
Ask About
Advertising
Link to Us
MODSonair
View in iTunes
Please help us to raise in the ranks of podcasting and subscribe to our itunes feed using the link above.
MODSonair Releases
MODSonair Episode 154
MODSonair Episode 153
MODSonair Episode 152
MODSonair Episode 151
Video server move
Next Show
The next MODSonair show will air LIVE on:
11/23/2008 12:00 EST

Time remaining:
Copyright © 2008 MODSonline
Tresware Content Management System Copyright © 2008 Tresware
Website Designed and Hosted   Tresware