Jump to content

Midnighters

Member
  • Content Count

    894
  • Joined

  • Last visited

  • Medals

Posts posted by Midnighters


  1. just to clarify: 

    "this" (without underscore) , is an editor only thing. So inside triggers, init boxes, etc it exists / is defined.

    whenever you're making an SQF script you may see: _this , which will either be the parameters passed to the script, or depending on what you're using it may be a special variable for something.

    • Like 1

  2. On 1/30/2018 at 8:15 AM, pierremgi said:

    Really?

    If you are using allPlayers , I can't imagine you're picking some AIs by the way. isPlayer is useless here.

    Player will return the local player on client or hosted server (once game started locally, more exactly).

     

    Remark: playableUnits is a false friend.

    For MP usage, it returns the same as switchableUnits in SP, i.e. the red circled, checked as playable, units in 3den... IF you don't disable AIs in lobby. If AIs are disabled, playableUnits is just the same as allPlayers and should be named "playedUnits" in this case. This is important because in such case, variable name (and code in init field) of the unit is nil before JIP.  If bob is a disabled AI in lobby, bob simply doesn't exist before JIP and any attempt to script with bob variable will return an error.

    No I was never using allPlayers, just throwing an example. Thanks for your feedback though


  3. 10 hours ago, ZeD.oz said:

    @EricR

    I can't afford to jump on probalilities with this project, it's also a way to promote this game. I make it work properly or not at all... thank you for your input.

     

    @Midnighters

    Great contribution, thank you. I can see clearly now, the rain is gone.

    you're welcome,

    I'm used to hearing Eric go on and on about this. That's particularly why I posted.

    But, I do hope you end up with a solution indeed.


  4. 1 minute ago, rekkless said:

    I don't want to be rude, but how can you call yourself a Milsim group and play with no Stamina??

     

    Anyway an easy way is through MCC, you can turn Stamina off in MCC.

     

    But I would advise to AT LEAST run a modified version of ACE Stamina even if it is set to the easiest, bambi setting. 

    They're more like casual milsim if even.

    However, I don't think it's wise to recommend MCC for everything as it's kind of a mess after a while.


  5. 54 minutes ago, -XFIRE- said:

    I put in init.sqf

     

    
    [] spawn {
    	while {true} do {
    		player enableStamina false;
            player forceWalk false;
    		player setCustomAimCoef 0.35;
    		player setUnitRecoilCoefficient 0.75;
    		uiSleep 6;
    	};
    };

     

    why is this a loop? These are all setter commands and don't need to be updated more than once.


  6. Just now, Schatten said:

    @Midnighters, you are right. But if _targetArray doesn't contain 3, nil is returned.

    correct, just a hypothetical. I don't necessarily agree that just because it "works" means it should be used.

    your example would be fine if something like an event handler is added and the same variable needs to be used within. Like "get/set" variable on player / server to retrieve the same info inside the event handler. 

×