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

Members Online

»
0 Active | 56 Guests
Online:

LATEST FORUM THREADS

»
map test
CoD Mapping
first map
CoD4 MP Mapping
eXtreme+ v2.9
CoDBO Map + Mod Releases
Gaming
Q4 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: CoDUO Mapping
CoD United Offensive mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Why are my boats moving weird?
Fawlty
General Member
Since: Feb 4, 2010
Posts: 109
Last: May 29, 2018
[view latest posts]
Level 4
Category: CoDUO Mapping
Posted: Monday, Feb. 10, 2014 05:43 am
I'm trying to make a map
In the map there's a body of water and to cross it, I want several boats moving back and forth the players can jump in
I've got them moving back and forth however they all move hundreds of units to the south east before moving back and forth
There are two wapoints + the boat, this image describes what my problem is better... hopefully it makes sense

http://i.imgur.com/hcrGFSV.png
Here's the entity information

Boat - first waypoint (move right) - second waypoint (back left)
http://i.imgur.com/4KcRMV6.png

Here's the code in the .gsc
Code:

	maps\mp\topboat_move::main();
Code:

main()
{

    thread topboat_slider();

}


topboat_slider()
{
    topboat = getent("topboat","targetname");
    time = 1;
    tbwr = getent("tbwr","targetname");
    tbwl = getent("tbwl","targetname");
   
//takeoff
while(1)
   {
  
//stop 1
       topboat moveto (tbwr.origin,10,3,3);
       topboat waittill("movedone");
       wait (4); 
  
//stop2
       topboat moveto (tbwl.origin,10,3,3);
       topboat waittill ("movedone");
       wait (4); 
   }          
}

The other moving boats have essentially the same code and everything but botboat instead of topboat, bbwl instead of tbwl, etc
Hopefully this post makes sense to people
Share |
ukdjaj
General Member
Since: Jun 1, 2008
Posts: 2725
Last: May 17, 2016
[view latest posts]
Level 9
Category: CoDUO Mapping
Posted: Tuesday, Feb. 11, 2014 06:42 am
If you're moving them just one way, why not try just using "movex" or movey?

Are you sure you don't have any origins with the same targetname?

Double / triple check as that could be your problem


Thanks, Ukdjaj[thumbs_up]
Share |
Fawlty
General Member
Since: Feb 4, 2010
Posts: 109
Last: May 29, 2018
[view latest posts]
Level 4
Category: CoDUO Mapping
Posted: Thursday, Feb. 13, 2014 04:26 pm
Thanks, will try it later
Will post updates ITT when I do it, though I've no idea how long from now that'll be
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty : CoDUO 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

»