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

Members Online

»
0 Active | 8 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 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 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
Page
Next Page
subscribe
Author Topic: Help with multiple vehicles
JerryTube
General Member
Since: Mar 4, 2007
Posts: 88
Last: Jul 1, 2013
[view latest posts]
Level 3
Im a fan of MODSonair
Category: CoD2 MP Mapping
Posted: Monday, Mar. 12, 2007 08:07 am
Hey guys,
I am having some trouble with the two tanks in my map.

the sequence is that the sherman rolls down the road then the tiger drives out in front of it and blows the sherman to smitherines.

I get an error like this..

Code:
undefined is not an entity:

tiger1 attachPath(path);


Here is my GSC

Code:
main()
{
//*** Init Map
maps\_sherman::main("xmodel/vehicle_american_sherman");
maps\_tiger::main("xmodel/vehicle_tiger_woodland_brush");
maps\_load::main();
thread tank_a();
thread tank_b();
}

tank_a()
{

maps\_vehicle::scripted_spawn(1); // Spawns vehiclegroup 1

sherman1 = getent("sherman1", "script_noteworthy");
path = getvehiclenode ("vehicle_start_path", "script_noteworthy");

sherman1 attachPath(path);

wait 2; // so player can realise what is happening:-)

sherman1 startPath();

}

tank_b()
{

tiger1 = getent("tiger1", "script_noteworthy");
path = getvehiclenode ("tiger1_start_path", "script_noteworthy");

tiger1 attachPath(path);

wait 2; // so player can realise what is happening:-)

tiger1 startPath();

level.vehicle setTurretTargetEnt( getent ("sherman1","script_noteworthy"), ( 0, 0, 64 ) );
level.vehicle waittill( "turret_on_vistarget" );
wait 2;
level.vehicle FireTurret(); // bye bye sherman

}


Also how do you trigger vehicles?[confused]



Share |
2_k
General Member
Since: Nov 17, 2006
Posts: 43
Last: Feb 10, 2008
[view latest posts]
Level 2
Category: CoD2 MP Mapping
Posted: Monday, Mar. 12, 2007 01:25 pm
Intresting but i'm not found any toutorials about attacking or fireing tank. Maby somebody knows how do this?

Share |
srkovni
General Member
Since: Aug 30, 2006
Posts: 44
Last: Oct 27, 2007
[view latest posts]
Level 2
Category: CoD2 MP Mapping
Posted: Monday, Mar. 12, 2007 06:21 pm

afflicted, but being French, I maitrise not well your language.

I believe to understand that your problem would be related to explode a tank of sherman.

if it is that, I give you a code which makes it possible to explode a truck while drawing on its tank. I think that the principle must be the same one.

Code:
main()
{
	camion();
}

camion()
{
      level._effect["cambang"] = loadfx("fx/explosions/large_vehicle_explosion.efx");
      level._effect["camfeu"] = loadfx ("fx/fire/building_fire_large.efx");

      camions = getentarray("camion", "targetname");
      if(isdefined(camions))
      {
         for(i=0; i<camions.size; i++)
         {
               camions[i] thread declenche();
         }
     }
}

declenche()
{
      trig = getent(self.target, "targetname");
      trig thread boumcam(self);
}

boumcam(camion)
{
        camstroy = getent(self.target,"targetname");
        camstroy hide();

	while(1)
	{
         self waittill ("trigger");
                       {
                        bouchon= getent("bouchone","targetname");
                        reservoir= getent("reservoire","targetname");
                        origin = camion getorigin ();

		        playfx(level._effect["cambang"], origin);

		        playfx(level._effect["camfeu"], origin);

                        camion playsound("explovehicul");
 
                        camion delete();

                        radiusDamage(origin, 300, 200, 40);
                        wait(0.1);
                        radiusDamage(origin + (0, 0, 20), 300, 200, 40);
                        wait(0.1);

                        camstroy show();

                        bouchon delete();
                        reservoir delete();

                        break;
		       }
            }
}


Translate targetname in english
truck = camion
stopper= bouchon
tank = reservoir

if you manage to make move vehicles, I will be to interest. could you put on line your 2 gsc

maps\_sherman::main("xmodel/vehicle_american_sherman");
maps\_tiger::main("xmodel/vehicle_tiger_woodland_brush");

Share |
2_k
General Member
Since: Nov 17, 2006
Posts: 43
Last: Feb 10, 2008
[view latest posts]
Level 2
Category: CoD2 MP Mapping
Posted: Monday, Mar. 12, 2007 09:44 pm
I mean , how can i make sherman shooting in sp map?
p.s. sry for my bad english.
Share |
JerryTube
General Member
Since: Mar 4, 2007
Posts: 88
Last: Jul 1, 2013
[view latest posts]
Level 3
Im a fan of MODSonair
Category: CoD2 MP Mapping
Posted: Monday, Mar. 12, 2007 10:06 pm
thnx for your help,

I have been reading through the newvillers GSC and i found this..

Code:

	
	node = getvehiclenode("townhall_tigersurprise", "script_noteworthy");
	node waittill ("trigger");


Does this have any significance i also saw it in this thread
Share |
JerryTube
General Member
Since: Mar 4, 2007
Posts: 88
Last: Jul 1, 2013
[view latest posts]
Level 3
Im a fan of MODSonair
Category: CoD2 MP Mapping
Posted: Tuesday, Mar. 13, 2007 07:10 am
bump...[cry]
Share |
JerryTube
General Member
Since: Mar 4, 2007
Posts: 88
Last: Jul 1, 2013
[view latest posts]
Level 3
Im a fan of MODSonair
Category: CoD2 MP Mapping
Posted: Wednesday, Mar. 14, 2007 06:20 am
lol im stuck on this fellas plz help...

edited on Mar. 14, 2007 02:30 am by Mr.Cache
Share |
WHC_Grassy
General Member
Since: Apr 20, 2005
Posts: 1426
Last: Aug 25, 2007
[view latest posts]
Level 8
Category: CoD2 MP Mapping
Posted: Wednesday, Mar. 14, 2007 08:40 am
"Undefined" means the script didn't find the entity in the map, this could be due to a typo, mismatched name, or bad naming practice.

Check the naming of that tank in the map editor and make sure it matches what you have in the script.

Also instead of using the same alias name as the entity name and looking at a script_noteworthy option.

Try this and see what happens:
tiger = getent("tiger1","targetname");


Grassy
Share |
JerryTube
General Member
Since: Mar 4, 2007
Posts: 88
Last: Jul 1, 2013
[view latest posts]
Level 3
Im a fan of MODSonair
Category: CoD2 MP Mapping
Posted: Wednesday, Mar. 14, 2007 09:30 am
Nope got the same error, but mabey if i trigger them....

Could someone plz direct me to a tut on triggering vehicles

Thnx in advance,
Mr.Cache

Share |
WHC_Grassy
General Member
Since: Apr 20, 2005
Posts: 1426
Last: Aug 25, 2007
[view latest posts]
Level 8
Category: CoD2 MP Mapping
Posted: Wednesday, Mar. 14, 2007 09:38 am
You need more info, otherwise your chasing a ghost.

Which actual entity is undefined?
It should tell you what entity was not defined in the console.
It could be your pathnode, not the tank!

Grassy
Share |
Restricted Access Topic is Locked
Page
Next Page
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

»