Problem mission creation

Problem mission creation

« posted: Feb 13, 2019, 11:35 AM »

I am looking for a new condition to have a mission in the mission.


Step 1: The mission begins.

Object1 and Object2 are created.

Step 2: The player must complete a condition to continue the mission.

_waitUntilContinueCondition = {{isPlayer _x && _x distance _Objet1 <5 && _Object1 distance _Object2 <5} counts playable units> 0};

The player must fetch Object2 and bring back Object1's loan
By filling this created condition: Object3

Step 3: The player completes the last condition to finish the mission.

_waitUntilSuccessCondition = {{isPlayer _x && _x distance _Objet1 <5 && _Object1 distance _Object3 <5} counts playable units> 0};

The player must then fetch Object3 and bring back Object1's loan

To make I have add in the mission codeProcessor.sqf:

if (call _waitUntilContinueCondition) exitWith
call _continueExec;

In my mission file I created:

_waitUntilContinueCondition and _continueExec

Everything works perfectly except in Step 3.
This one is not taken into account, and therefore the mission did not finish.

I understand that the script stops after my change. I was seeing on the Bohemia website to find the function that did not stop the script, I thought it was with the exitWith, but no.
Mission creation is not my strong, I would like someone whose specialty is create mission , to help me with my problem please?

Thank you in advance for your help.


PS : Sorry for my bad english ;)
Only Paranoids survive ...
  • Offline AgentRev
  • Developer
  • Veteran
  • ******
  • Posts: 2600

Re: Problem mission creation

« Reply #1 posted: Feb 13, 2019, 11:29 PM »
Can you please upload/attach the whole mission file? It will be easier to help you.

Re: Problem mission creation

« Reply #2 posted: Feb 14, 2019, 05:46 PM »
Thank you for responding to my message so quickly AgentRev.

In fact I just found my mistake.
I totally forgot to add my object3 in my private.
As a result, I could always wait  :P

You have the right to make fun of me because I call myself : the Idiot of the year   :-X

I am sincerely sorry to have bothered you for so little.

I take this opportunity to ask you, if I can help you one way or another, do not hesitate to ask me, I will do it with great pleasure.

And congratulations for your work, your Mod is really beautiful!

Only Paranoids survive ...