Hi guys
Ok, I tried to adopt the script now that you posted earlier (@ Spooner). But unfortunately it didn't work out the way I wanted...
The script just ran through from top to the bottom executing one line after the other without following the if-commands etc. Finally it just exits. Like if there existed no if-then commands at all.
And I encountered this one error again, I'm not at home right now (can't execute ArmA), so I just remember the |#|... I think it was the one "error in expression", don't know. However, there was a mistake in the script (the way I used it, of course
).
I also tried it both as .sqs or .sqf, the result was the same.
Edit:
Here is my script, how I used it...
luchswaffennieder.sqf
__________________
if ((count (magazines Luchs) == 0) and (count ((weapons Luchs) - ["NVGoggles","Binocular"]) > 0)) then
{
titleText ["Drop your weapons!", "PLAIN DOWN"];
playsound "dropweapon1"
~15
if ((count (magazines Luchs) == 0) and (count ((weapons Luchs) - ["NVGoggles","Binocular"]) > 0)) then
{
titleText ["I said drop your weapons NOW!", "PLAIN DOWN"];
playsound "dropweapon2"
~15
if ((count (magazines Luchs) == 0) and (count ((weapons Luchs) - ["NVGoggles","Binocular"]) > 0)) then
{
titleText ["Drop him lads!", "PLAIN DOWN"];
playsound "witz"
Luchs setCaptive false; // Suddenly, the AI will hate the player again and kill him.
resanf dofire Luchs;
};
};
};
if (captive Luchs) then
{
titleText ["Right, now you come with us.", "PLAIN DOWN"];
playmusic "sleep2"
resanf setbehaviour "safe"
resisani setbehaviour "safe"
};
____________
Ahm... Just tell me one thing, I am remembering right now. It is ok to use the name of the played unit (in this case -> Luchs), isn't it? I don't have to write "Player", do I?