Home   Help Search Login Register  

Author Topic: help me with my script  (Read 930 times)

0 Members and 1 Guest are viewing this topic.

swift88

  • Guest
help me with my script
« on: 01 Aug 2003, 17:59:23 »
i need help with this script really badly its a centurion avlb bridge layer (model by rufus)...........ive figured out how to do it, the problem is that ive adapted a script but when i ran resistance, it says centurion avlb script has C instead of ; ......... what the hell does dat mean !!!!!
any way i hope you can help me

Quote
//This is the Config file for the
//US Centurion - Gulf War
//Model by Rufus, Coding by quakergamer i could add you name here
//For the OPGWC MOD
//http://www.roughnecks.org/opgwc/
//Visit us!!
class CfgPatches
{
   class centurion AVLB
   {
      units[]={"ds_centurion AVLB"};
      weapons[]={};
      requiredVersion=1.70;
   };
};

class CfgModels
{   
   class Default {};
   class Vehicle: Default {};
   class Tank: Vehicle {};
   class ds_centurion: Tank {};
};

class CfgVehicles
{
   class All {};
   class AllVehicles: All {};
   class Land: AllVehicles   {};
   class LandVehicle: Land {};
   class Tank: LandVehicle {};
   class M1Abrams: Tank {};
   class ds_centurion: M1Abrams
   {
      scope=2;
      side=1;
      displayName="UK Centurion AVLB";
      nameSound="tank";
      accuracy=0.700000;
      armor=1750;
      cost=1000000
      maxSpeed=56;
      type=1;
      threat[]={1,1,0.300000};

      model="\ds_centurion\ds_centurionavlb.p3d";

//Canturn
   
      forceHideDriver=1;

      driverAction="ManActT72DriverOut";
      driverInAction="ManActT72Driver";
      commanderAction="ManActM1A1CommanderOut";
      commanderInAction="ManActT72Commander";

      soundEngine[]={"\ds_c2\fx\chal2_engine.ogg",10.000000,1};
      soundEnviron[]={"\ds_c2\fx\UK_CHALTREADS.OGG",10.000000,1};   

   {

//TurnOut Anims config
      class Stage 1
      {   
         selection="structure";
         axis="osa_crane";
         angle=-45
      };
      class Struts move
      {
         selection="stand"
         axis="osa_stand"
         angle=-30
      };
//Im going to continue once ive finished
      class HatchDriver
      {
         selection="poklop_driver";
         axis="osa_poklop_driver";
         angle=110;
      };
      class HatchCommander
      {
         selection="poklop_commander";
         axis="osa_poklop_commander";
         angle=115;
      };

//Config Wheels
      class Wheels
      {
         rotR[]={"kolL1","kolL2","kolL3","kolL4","kolL5","kolL6","kolL7","kolL8"};
         rotL[]={"kolP1","kolP2","kolP3","kolP4","kolP5","kolP6","kolP7","kolP8"};
         upDownL[]={"koloP1","podkoloP1","koloP2","podkoloP2","koloP3","podkoloP3","koloP4","podkoloP4","koloP5","podkoloP5","koloP6","podkoloP6","koloP7","podkoloP7","koloP8","podkoloP8"};
         upDownR[]={"koloL1","podkoloL1","koloL2","podkoloL2","koloL3","podkoloL3","koloL4","podkoloL4","koloL5","podkoloL5","koloL6","podkoloL6","koloL7","podkoloL7","koloL8","podkoloL8"};
      };

//armor config
      class HitEngine {armor=0.8;material=60;name=engine;passThrough=1;}
      class HitHull {armor=1;material=53;name=hull;passThrough=1;};

      armorEngine=0.8;
      armorLights=0.4;
      armorStructural=0.8;
      armorTracks=0.6;
      armorHull=1.0;

//end armor config
   };
};
class CfgNonAIVehicles
{
   class ProxyCrew {};
   class ProxyDriver: ProxyCrew {};
   class ProxyCommander: ProxyCrew {};
   class ProxycenturionDriver: ProxyDriver {};
   class ProxycenturionCommander: ProxyCommander {};
   class ProxycenturionCommanderOutStat: ProxyCommander {};
};

[img removed]avlb_with_bridge.jpg[/img]
« Last Edit: 01 Aug 2003, 18:03:36 by swift88 »

swift88

  • Guest
Re:help me with my script
« Reply #1 on: 01 Aug 2003, 18:09:43 »
i also need a drop script

deaddog

  • Guest
Re:help me with my script
« Reply #2 on: 02 Aug 2003, 05:11:40 »
I believe you are missing a } somewhere.  There are 39 { and only 38 }.  There has to be a matching number of brackets.

swift88

  • Guest
Re:help me with my script
« Reply #3 on: 02 Aug 2003, 14:41:23 »
thanxs man

swift88

  • Guest
Re:help me with my script
« Reply #4 on: 04 Aug 2003, 12:55:52 »
still hasnt been fixed

Offline KTottE

  • Former Staff
  • ****
Re:help me with my script
« Reply #5 on: 04 Aug 2003, 20:44:22 »
Code: [Select]
  soundEngine[]={"\ds_c2\fx\chal2_engine.ogg",10.000000,1};
      soundEnviron[]={"\ds_c2\fx\UK_CHALTREADS.OGG",10.000000,1};  

   { <--------------------------------------------------------

//TurnOut Anims config
      class Stage 1

{ indicated by my rox0r arrow shouldn't be there. There's no reason for it.

Code: [Select]
class Stage 1
      {  
         selection="structure";
         axis="osa_crane";
         angle=-45 <----------------------------
      };
      class Struts move
      {
         selection="stand" <----------------------------
         axis="osa_stand" <----------------------------
         angle=-30 <----------------------------

Lines indicated by more arrows lack ; at the end

If you fix that, and then post the edited config.cpp, we can help you more. That is, if it's still not working

*Sits down and prays for an error-reporting in OFP which returns linenumber*

"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming 'WOW What a Ride!'"

Mr_Shady

  • Guest
Re:help me with my script
« Reply #6 on: 04 Aug 2003, 20:55:51 »
Off-topic, but it's a Chieftain AVLB, not a Centurion.

swift88

  • Guest
Re:help me with my script
« Reply #7 on: 04 Aug 2003, 23:47:52 »
2 kooky i know but this is the best i can do for the moment
2 ktotte thanks man ill give it a try 2nite

swift88

  • Guest
Re:help me with my script
« Reply #8 on: 05 Aug 2003, 01:18:09 »
now all i get now is a crash of the game when i run it after editor and the screen flashes and brings me back 2 windsows