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

Members Online

»
0 Active | 64 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
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 12:43 pm
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: 2726
Last: Nov 15, 2020
[view latest posts]
Level 9
Category: CoDUO Mapping
Posted: Tuesday, Feb. 11, 2014 01:42 pm
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 11: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

»