f3cuk / WICKED-AI

Wicked AI missions for your server
30 stars 59 forks source link

Mission timeout (question) #165

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hello guys, this is probably not issue - just I'm missing somenthing or it's designed this way: Here is the thing related to _mission_winorfail_:

"Problem":

{ if((isPlayer _x) && (_x distance _position <= wai_timeout_distance)) then { _player_near = true; }; } count playableUnits;

if (_currenttime - _starttime >= _timeout_time && !_player_near) then {_timeout = true;}; // ... };



- ... which means, if player starts missions, then leave and no other player is interested to finish it, mission will stay till restart...

There is more what I would like to ask, but I have to admit, I'm sick at these days and my brain doesn't work as I want :) So my question is: is it build this way by design or am I missing here? Thank you very much for your time. Cheers, iben

[L8083]: https://github.com/f3cuk/WICKED-AI/blob/master/WAI/compile/mission_winorfail.sqf#L80-L83
[L15]: https://github.com/f3cuk/WICKED-AI/blob/master/WAI/compile/mission_winorfail.sqf#L15
[L87L89]: https://github.com/f3cuk/WICKED-AI/blob/a85d0ae3c5d54d7063f185fec46d448e73c3b4f8/WAI/compile/mission_winorfail.sqf#L87-L89
worldwidesorrow commented 6 years ago

I think that was a redundant check if I remember correctly.

ghost commented 6 years ago

Ok. Thank you for your answer and time.