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

Members Online

»
0 Active | 66 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: ok i was wondering how you tell vehicles how to move?
moose456
General Member
Since: May 28, 2006
Posts: 24
Last: Oct 17, 2007
[view latest posts]
Level 1
Category: CoD2 MP Mapping
Posted: Tuesday, Nov. 21, 2006 04:47 am
Hi their i am in the process of making a omaha map and was wondering how to make the higgins boats ride up to the beach and the gates droplike in the normandy landings at point duhoc. is their a way to make the gates themselfs just be open as well?
Share |
BloodySoldier
General Member
Since: Aug 17, 2006
Posts: 318
Last: Apr 6, 2009
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Tuesday, Nov. 21, 2006 07:12 am
well heres a script thatll get the ship to the shore, but the only problem is that it loops so the boat will go to the shore respawn and go to the shore again LOL.

k if ur boat is a model from the game or that u made make it script_model and if u made it out of brushes select all the pieces of the boat and make it a script_brushmodel

k the select ur boat (all pieces) give it a targetname of boat
deselect it. create a script_orgin place this near ur boat give it a targetname start_boat. then create another orgin and place it where u want the boat to end. give it a targetname of end_boat.

now heres the script.

Code:
main() 
{ 

thread boat(); 
} 

boat() 
{ 
boat = getent ("boat","targetname");
end = getent ("end_boat","targetname");
start = getent ("start_boat","targetname");

while (1) 
{ 
boat moveto((end.origin), 4);
boat waittill ("movedone");
boat hide();
boat moveto((start.origin), 0.1);
boat waittill ("movedone");
boat show();
	}
}


i take no credit in this script what so ever this came from my friend creator this script was origannly meant for a plane i just renamed parts of the script to make it look neater hopefully u can find a way to only make it stop at the end orgin.


as i wrote that last paragraph i got an idea [idea]. ok instead of that script try it with this one. this might get it to stop at the last orgin. as for ur opening of the gate i do not how to do that srry.

Code:
main() 
{ 

thread boat(); 
} 

boat() 
{ 
boat = getent ("boat","targetname");
end = getent ("end_boat","targetname");
start = getent ("start_boat","targetname");

while (1) 
{ 
boat moveto((end.origin), 4);
boat waittill ("movedone");
boat hide();
}
}



not sure if itll work but give it a shot


good luck

|ZERO|BloodySoldier[cool]



edited on Nov. 21, 2006 02:14 am by BloodySoldier
Share |
Ray
General Member
Since: Apr 24, 2006
Posts: 1027
Last: Nov 17, 2013
[view latest posts]
Level 8
Category: CoD2 MP Mapping
Posted: Tuesday, Nov. 21, 2006 10:01 am
To work the door or ramp in this case couldnt you use the script that opens doors in buildings? You would have to change a few things but I would think the principle is the same. A script is located around here somewhere or someone has a script for it. If this works then all someone has to do is hit their use key to open the door/ramp.



edited on Nov. 21, 2006 05:02 am by LPRay
Share |
babycop
General Member
Since: Feb 18, 2006
Posts: 488
Last: Feb 27, 2010
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Tuesday, Nov. 21, 2006 10:42 am
btw, the looping function is while (1)

take that out and it wont loop
Share |
FlesyM
General Member
Since: Jul 24, 2005
Posts: 399
Last: Jan 24, 2008
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Tuesday, Nov. 21, 2006 05:08 pm
i think it's too much to ask from someone that doesn't know what's a script ...

btw if you want the door to drop, you need an door-less higgins model AND a higgins door model. if both are attached together, you can't make that work.
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

»