Results 1 to 3 of 3

Thread: Counting stuff in MP

  1. #1
    I'm converting a SP mission to MP, to be played in a LAN-game. How will the following TRIGGER behave in a MP game:
    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
    CONDITION&#58; count units civMob1 &#60;5
    ACTIVATION&#58; nomin_count = nomin_count +1; publicVariable &#34;nomin_count&#34;
    [/QUOTE]

    It&#39;s supposed to add the value one (+1) to the VARIABLE nomin_count (defined by me as 0 in the init.sqs) when the GROUP civMob1 loses too many members, and works good in SP.

    I suspect, however, that in a MP game it will add +1 for each player in the network, hence if there are three players it will add +3 rather than +1.

    Am I correct? I have no MP-testing oportunities at the moment.

    If so, can I solve the problem by changing the TRIGGER this way???
    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
    CONDITION&#58; local server AND count units civMob1 &#60;5
    ACTIVATION&#58; nomin_count = nomin_count +1; publicVariable &#34;nomin_count&#34;
    [/QUOTE]

    I would prefer to use simple corrections like these, because the mission is already made and working in SP. Changing the basic structure will increase the workload for yours truly too much.




    OFPEC | Intel Depot
    Find the answers to all your editing related questions at OFPEC - The Editing Center.

  2. #2
    Yes, you will just need a game logic named server placed on the mission for that to work.

  3. #3
    Master Sergeant nominesine's Avatar
    Join Date
    Dec 21 2004
    Location
    OFPEC
    Posts
    608
    Author of the Thread
    Thank&#39;s. I was afraid I would have to spend hours correcting my mistake.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •