Jump to content

Holyman

Member
  • Content Count

    3
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About Holyman

  • Rank
    Rookie
  1. Just wanted to say Murklor: Your script works brilliantly, exactly what I've been after for a while. Just one note though... In order to get it to work, I had to add... this setVariable ["vehicle_attached",false,false]; ...to the "Init" line of the helicopter in question (along with the addAction...), in order to get it to work. Otherwise, the If...Then...Else loop didn't seem to fire. Other than that, thanks very much, you're a star! Peace
  2. Thanks very much for the responses guys. It was helpful to have the doubt removed that my code was the problem. Turns out that all I needed to do was re-boot... :d: Either that or the rest my PC had overnight did the job. Or maybe it was the rest that *I* had... Still, if nothing else, I have learned that I can drop all the "exit" statements from my scripts, which has been a force of habit since OFP days. :) Thanks again, and I promise I'll drink more coffee before I next think about cluttering up the Forum with a pointless thread. Peace
  3. Hi All. Long time listener, first time caller here. I really have spent the last two hours searching all over for a solution, but have now concluded that the answer to my problem is so simple, no-one has ever needed assistance with it before... I'm putting together a recruitment script, and I'm just trying to fire some actions conditional on a string passed through with the script call. I am calling the script with the following (from within another script, btw): ["A"] execVM "Recruit.sqf"; And the (stripped down to try and solve this particular problem) script is: _g = _this select 0; hint format ["G is %1", _g]; sleep 3; if (_g == "A") then { hint "The If Fired..."; sleep 3; }; hint "Script End"; exit The problem I have is that the IF condition just won't fire, and I can't figure out why. (Obviously the hints are there for debugging purposes.) I have tried passing through a number rather than a string, and that doesn't work either. So I'm pretty sure it has something to do with the == operator. I KNOW this must be just a simple syntax shortfall on my part, but I would really appreciate some guidance. If I don't go to bed right now, my wife will divorce me, so I have to call it quits for the night. But I'll really appreciate any help anyone can offer. Peace
×