Author Topic: Stupid questions must be asked  (Read 348 times)

So, I'm trying to make a weapon based off of the rocket launcher, but I cannot figure out one thing: how to "cite" the original weapon (Rocket launcher) but still change things. I know how to actually use the original weapon, thanks to the other threads, but I don't know how to make any modifications without them being rejected for inconsistency.


That is exactly what I tried to do. However, no matter what I do, it seems to find an error in a very unspecific location.
Here is the console, in a nice shade of blue for the discerning customer:

Loading Add-On: Weapon_Mod_Rocket
Add-Ons/Weapon_Mod_Rocket/Weapon_Mod_Rocket.cs Line: 21 - Syntax error.
>>> Some error context, with ## on sides of error halt:
^error("ERROR: You Dun Has Nu Rocket Lanchur!");

}

else

{

^exec("./Weapon_Rocket_Launcher.cs");

}

datablock ExplosionData(ModRocketExplosion)

{

^shakeCamera = false;

^radiusDamage = 0;

};

datablock ProjectileData(ModRocketProjectile)

^uiName ##=## "Modified Rocket";

};

datablock ItemData(ModRocketItem)

{

^uiName = "Modified Rocket";

};
>>> Error report complete.

ADD-ON "Weapon_Mod_Rocket" CONTAINS SYNTAX ERRORS


It has done this for modified directDamage values, too.
I did load the rocket launcher datablocks correctly, too.

Code: [Select]
datablock ProjectileData(ModRocketProjectile)

^uiName ##=## "Modified Rocket";

};

there needs to be an opening curly bracket

lol. Can't believe I missed that.