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

Members Online

»
0 Active | 39 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 subscribe
Author Topic: cart
-=SOD=-Ghost
General Member
Since: Mar 20, 2005
Posts: 77
Last: Jan 20, 2008
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Thursday, Jan. 18, 2007 04:06 pm
my cart keaps moving y insted of x :S please help me


main()
{
level.cartDown = true;
level.cartMoving = false;
thread cart_start();
}

cart_start()
{
cart = getentarray ("cartswitch","targetname");
if ( isdefined(cart) )
for (i = 0; i < cart.size; i++)
cart thread cart_think();
}

cart_think()
{
while (1)
{
self waittill ("trigger");
if (!level.cartMoving)
thread cart_move();
}
}

cart_move()
{
cartmodel = getent ("cart", "targetname");
level.cartMoving = true;
speed = 20;
height = 4680;

if (level.cartDown)
{

cartmodel playloopsound ("cart");

cartmodel moveX (height - (height * 2), speed);
cartmodel waittill ("movedone");
cartmodel stopLoopSound("cart");
level.cartDown = false;

}

else
{

cartmodel playloopsound ("cart");

cartmodel moveX (height, speed);
cartmodel waittill ("movedone");
cartmodel stopLoopSound("cart");
level.cartDown = true;

}
level.cartMoving = false;
}
Quote:
null
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 MP Mapping
Posted: Thursday, Jan. 18, 2007 04:57 pm
cartmodel moveX (height - (height * 2), speed);

it is moving along the X-axis. Maybe you confused the x and y axis in your map?

you can always make it go the other way, by changing the moveX to moveY.
Share |
-=SOD=-Ghost
General Member
Since: Mar 20, 2005
Posts: 77
Last: Jan 20, 2008
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Thursday, Jan. 18, 2007 06:08 pm
dazent wurk it keaps goin in 2 the same dyrection it das not mather if i make it x y of z
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 MP Mapping
Posted: Friday, Jan. 19, 2007 07:22 pm
eeuuhhmm... that shouldn't be happening. Changing the MoveX to MoveY should definately change the direction of movement. Don't you maybe have an old version of your .gsc file in a .pk3 file somewhere or something like that?
Share |
Restricted Access Topic is Locked 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

»