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

Members Online

»
0 Active | 65 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: CoD Mapping
CoD 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: script compile error --> bad token ´\`
hAYX
General Member
Since: Sep 21, 2006
Posts: 26
Last: Apr 10, 2012
[view latest posts]
Level 2
Category: CoD Mapping
Posted: Friday, Jul. 13, 2007 08:06 pm
hi....[smokin]

i work with the "Moving and Shooting Tanks in SP" Tut but unfortunality is there always a
script compile error --> bad token ´\` --> line 3 (maps\_load::main();\\loads the global scripts) and i don´nt know why....lol [eek]...

could any body help me or send an example map? (hayx@arcor.de)

greetings hayx[angryalien]
Share |
hAYX
General Member
Since: Sep 21, 2006
Posts: 26
Last: Apr 10, 2012
[view latest posts]
Level 2
Category: CoD Mapping
Posted: Sunday, Jul. 22, 2007 06:53 pm
ok, it works........[devilishgrin]
i took the truck tutorial and instead the truck i took a tiger tank.....and modded the script[thumbs_up]....
then i wanted that my tank is shooting......for that i took e new truck squad with ai´s......gave it different values and it was shooting[idea]......unfortunally only one time....[sad] the rest the tank shoots on the ai´s and they aren´t deffense[idea].....

could anybody help me to correct that please????[cool]

here the script:

main()
{

maps\_tank::main();
maps\_tiger::main();
maps\_t34::main();
precacheturret("mg42_tiger_tank");
precachemodel ("xmodel/vehicle_tank_panzeriv_machinegun");
precachemodel("xmodel/vehicle_tank_t34_destroyed");

//Tank
trucktrig = getent ( "truck_trigger","targetname");
trucktrig waittill ("trigger");

tank = getent ( "truck1","targetname");
path = getVehicleNode (tank.target,"targetname");
tank attachpath(path);
tank maps\_tiger::init();
tank startPath();


tank setTurretTargetEnt( getent ("truck2","targetname"), ( 0, 0, 100 ) );

tank waittill( "turret_on_vistarget" );
wait 4;
tank FireTurret();
}
//END OF MAIN BODY


and here the bsp, the map and the gsc file: http://www.clinchgrinch.de/download.php?fileID=71
Share |
SgtStryker201
General Member
Since: Feb 9, 2007
Posts: 28
Last: Jan 21, 2008
[view latest posts]
Level 2
Category: CoD Mapping
Posted: Tuesday, Sep. 25, 2007 02:28 pm
To get your tank to fire again at the same target just add this to the end of the gcs:

wait 4;
tank Fire turret();

This will make it fire again. You can repeat this as many times as you want i think and the tank will just keep firing.
And if you want it to change targets and fire add this to the end:

tank setTurretTargetEnt( getent ("_____","targetname"), ( 0, 0, 100 ) );

tank waittill( "turret_on_vistarget" );
wait 4;
tank Fire turret();

That will make it change targets and fire.
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty : CoD 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

»