Jump to content

Rook Mk1

Member
  • Content Count

    123
  • Joined

  • Last visited

  • Medals

Community Reputation

44 Excellent

About Rook Mk1

  • Rank
    Sergeant

Profile Information

  • Gender
    Male
  • Location
    Scotland

Contact Methods

  • Biography
    AKA Lolguythehero

Recent Profile Visitors

1053 profile views
  1. Rook Mk1

    waitUntil alternatives

    @Dedmen Yeah I realise that it works now, it was a problem with the script. I was just under the impression that including anything other than true or false into a waituntil condition didn't work after update v1.93.145618
  2. Since waitUntil no longer does anything outside Booleans, what are some other good ways to wait in a script until a certain condition is activated? while do works for certain things but it's not 100% reliable. for instance originally you would have waitUntil {speed _object < 20}; so i would try something like: while {speed _object > 19} do {sleep 0.1}; But it was returning errors.
  3. if ("hgun_P07_F" in (WeaponCargo ammobox)) then Success! Thanks!
  4. I tried if ("hgun_P07_F" in (items _box)) then {hint "true" } else {hint "false"}; always returns false.
  5. Is it possible to check if an item is in a container? e.g. if (hgun_P07_F in _box) then I've tried a few different things but none seem to work.
  6. Ok, wasn't aware of that, but I know now, thanks all
  7. I changed it to a number and it worked from if (_weapon == pistol) then { _unit addWeapon "hgun_P07_F"; _unit addHandgunItem "16Rnd_9x21_Mag"; for "_i" from 1 to 2 do {_unit addItemToUniform "16Rnd_9x21_Mag"}; }; if (_weapon == 1) then { _unit addWeapon "hgun_P07_F"; _unit addHandgunItem "16Rnd_9x21_Mag"; for "_i" from 1 to 2 do {_unit addItemToUniform "16Rnd_9x21_Mag"}; };
  8. [_unit, 10, pistol] call gunScript; in code params ["_unit", "_stubbornness", "_weapon"]; but it fails to recognise _weapon whenever I try to use it, any idea why?
  9. Are we talking global setVariable or just var = addaction?
  10. Again I can’t really do that since it’s used by more than one unit.
  11. Another question, would it be possible to assign setVariable to an addaction command. For instance instead of _actionID = player addaction "etc"; It could be: player setVariable ["actionID", addAction "etc"]; then i could remove it using: player removeAction actionID or something.
  12. I cut and pasted everything into a new script which fixed it for some inexplicable reason.
  13. Yeah I’ve stopped for now, but I’ll try again later. It may be a bug, because even if I put something else in the condition after it throws up the same error until I do the line again.
  14. I keep getting error missing )
×