Page 7 of 7 FirstFirst ... 34567
Results 61 to 69 of 69

Thread: Pop-Up Targets (Firing Range)

  1. #61
    Hi, I never did make a full working version for several reasons the main being I really don't like pop ups and also I don't know how to get the score to display on one PC.
    I haven't tried MP scripting either but have you tried just running it on the server alone.

    place at the begining of the script.

    if(!isServer)exitWith{};

  2. #62
    Its not about scores, popup targets bugging out

  3. #63
    I would think it's because it's running on the server and all other clients. Try the above code to shut down the client scripts.

  4. #64

  5. #65
    i am tryin to use this, but not as a trigger but as a addAction in a init file any idea what i would need to change

  6. #66
    if you run the script via addAction only the person who performs the addAction sees the hints/score and everyone sees the targets.

    when i tried
    if(!isServer)exitWith{};
    nobody sees the hints/scores but they do get the popups

    if you run it via server side trigger everyone sees the hints but the popups go haywire because everyone is triggering the popups...

    i'm trying to make the script only popup server side but hint/score on all clients

    hey F2k Sel, any ideas? I'll post my work in progress modification if it'd help.

    EDIT: currently messing with some ideas, will post back later
    Last edited by drivetheory; Oct 30 2012 at 06:22. Reason: info update

  7. #67
    For a firing range I did once we reset the range via a local trigger on the instructor which set a variable that reset the range via on-map trigger, so everyone reset it at the same time.

    instructor's player_init:
    Code:
    if (_unit == user1) then {  
    	trgSST = createTrigger ["EmptyDetector",[1,0,0]];
    	trgSST setTriggerActivation ["ALPHA", "", true];
    	trgSST setTriggerType "NONE";
    	trgSST setTriggerStatements
    		["this",
    		"SST_resetpop = true; publicVariable ""SST_resetpop"";",
    		""];
    	trgSST setTriggerText "Reset Iron Sights Ranges";
    };
    And the trigger on the map had:

    Condition of:
    Code:
    SST_resetpop
    onAct of:
    Code:
    {_x setDamage 0; _x animate["terc", 0]} forEach laneTargets; SST_resetpop = false; publicVariable "SST_resetpop";
    laneTargets is a game logic on the map with this as it's init:
    Code:
    laneTargets = nearestObjects [this, ["TargetBase"], 130];
    We didn't try to keep score though, since it was obvious to the instructor how many they'd hit.

  8. #68
    got the popup target range script working in an MP environment, will post back later with complete details
    Last edited by drivetheory; Oct 30 2012 at 10:31. Reason: update

  9. #69

    MP Firing range

    Hello devetheory, Did you ever get around to posting how you got MP Firing range to work. I would love to see it if you care to share it with me.

Page 7 of 7 FirstFirst ... 34567

Posting Permissions

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