Jump to content
Sign in to follow this  
MEDICUS

Nvgoogles

Recommended Posts

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

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

NVGoggles, not NVGoogles. An understandable yet amusing mistake tounge_o.gif .

Share this post


Link to post
Share on other sites

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  sad_o.gif

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

I think, next time i should read more EXACTLY! crazy_o.gif

biggrin_o.gif  biggrin_o.gif  biggrin_o.gif

THX a lot, Hein!!! Think "Mr. Murray" made a misstake in his Editor-Manual  ghostface.gif

Thx, Hein! Heute abend dabei bei der RTS3?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×