MEDICUS 0 Posted January 15, 2004 Hi, I'm working on a FDF-MP-Mission and tried to add some new weapons to the "playable" Units. I'm adding the weapons with a small script. Unit-name: S1, S2, ... weapon.sqs: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _Man = _this select 0 Removeallweapons _Man _Man addmagazine "BizonMag" _Man addmagazine "BizonMag" _Man addmagazine "BizonMag" _Man addmagazine "BizonMag" _Man addmagazine "HandGrenade" _Man addmagazine "HandGrenade" _Man addmagazine "PipeBomb" _Man addmagazine "PipeBomb" _Man addweapon "Bizon" _Man addweapon "FDF_lar7" _Man addmagazine "GlockSmag" _Man addmagazine "GlockSmag" _Man addmagazine "GlockSmag" _Man addmagazine "GlockSmag" _Man addweapon "GlockS" _Man addweapon "Binocular" _Man addweapon "NVGoogles" exit ("FDF_lar7" is the FDF - LAR VII Rebreacher for the FDF Combat Diver) Init: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> [S1] exec "weapon.sqs" [S2] exec "weapon.sqs" ... If i go to the "Preview" in the editor i get an Error-Message like this: No entry 'config.cpp/CfgWeapons.NVGoogles'. Does anybody know what's wrong? I didn't change anything in my config and i never had problems with the NVGoogles (didn't add them manually with a script until now, but if i have them in the mission i can use them). The player (S1) normaly has NVGoogles, too ... but a different weapon ... so i removed all weapons (the NVGoogles, too) and add him now one (give him back his NVGoogles) I'm using Finmod and some more addons (all addons are in mod-folders, like finmod, gdt, ...) Original Addons and Res/Addons are the same like after the installation. THX in advance, MEDICUS Share this post Link to post Share on other sites
HeinBloed 0 Posted January 15, 2004 Try this: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _Man addweapon "NVGoggles" ____ Hein Share this post Link to post Share on other sites
m21man 0 Posted January 15, 2004 NVGoggles, not NVGoogles. An understandable yet amusing mistake . Share this post Link to post Share on other sites
MEDICUS 0 Posted January 15, 2004 Tried this one, too. Unit-Init-Line: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> this addweapon "NVGoogles" Same result  This one works fine: weapon.sqs: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _Man = _this select 0 Removeallweapons _Man _Man addmagazine "BizonMag" _Man addmagazine "BizonMag" _Man addmagazine "BizonMag" _Man addmagazine "BizonMag" _Man addmagazine "HandGrenade" _Man addmagazine "HandGrenade" _Man addmagazine "PipeBomb" _Man addmagazine "PipeBomb" _Man addweapon "Bizon" _Man addweapon "FDF_lar7" _Man addmagazine "GlockSmag" _Man addmagazine "GlockSmag" _Man addmagazine "GlockSmag" _Man addmagazine "GlockSmag" _Man addweapon "GlockS" _Man addweapon "Binocular" Share this post Link to post Share on other sites
HeinBloed 0 Posted January 15, 2004 _Man addweapon "NVGoggles" Share this post Link to post Share on other sites
MEDICUS 0 Posted January 15, 2004 I think, next time i should read more EXACTLY!   THX a lot, Hein!!! Think "Mr. Murray" made a misstake in his Editor-Manual  Thx, Hein! Heute abend dabei bei der RTS3? Share this post Link to post Share on other sites