Jump to content

jshock

Member
  • Content Count

    3059
  • Joined

  • Last visited

  • Medals

  • Medals

Everything posted by jshock

  1. I don't believe you have to assign the function to a variable, it's just good practice, and make sure that your call/spawn of the function is within a scheduled environment, reference some of the examples at the bottom of this page: https://community.bistudio.com/wiki/call
  2. As far as I can tell from the wiki pages: https://community.bistudio.com/wiki/BIS_fnc_paramWeather https://community.bistudio.com/wiki/BIS_fnc_setOvercast Both seem to be an instantaneous change of the overcast levels, however, the setOvercast function states that it is executed/shared across the network (not particullarly sure if that includes any JIP coming into the network) and must be executed in a scheduled environment. I would assume the call for paramWeather would be: _overcastLevel = [0.5] call BIS_fnc_paramWeather;
  3. jshock

    Cloaking

    Shouldn't the (uniform player) within the addAction array be (uniform _this) or (uniform _target), depending on who/what the addAction is attached to.
  4. jshock

    3D sound not looping

    Forgive my probable not correct usages of commands, however, I'm just doing this in a directional sense, not a syntactically correct sense :p. Couldn't you have your trigger with the condition of your 8ft distance and then in the onAct have a call to a script that looks like this: //script call argument comes in as true _playSoundVar = (_this select 0); while (_playSoundVar) do { playsound "blah"; //<<Like I said, whatever it is that plays the sound, don't know the exact syntax. waitUntil {//code for "sound completed"}; }; //and then have the script call argument false in the onDeact of the trigger /* Insert Code for stopping sound play here for when the while loop is not true */ Like I said, sorry for the lack of actual script, but it's just an idea of structure to play off of. EDIT: Was ninja'd by Dread :p, but if you want the sound to completely stop playing after the unit is out of range of it, meld the two ideas together :).
  5. No, you don't have to include the "_", I was just making sure you didn't have "range" as an object, but I think what you need is something like this: range globalChat formatText ["%1",tScore]; //OR, as I don't know the difference between the two myself range globalChat format ["%1",tScore];
  6. Yes if your squad leader's name is x9, replace myGrp with x9.
  7. According to the wiki page the globalChat command is "sent" by a particular unit, meaning that whatever is before the globalChat command has to be a unit, i.e.: _unit globalChat tScore;
  8. jshock

    Rappelling off of building?

    There are ropes already in the game, according to A3 Assets page and the use of the ropes in Zealot's Fastrope Script. You could reference his script to see all the commands and such he used to get the rope, attach it, and then alter it all for an edge on a rooftop, but if I remember correctly it's just a simple create vehicle command, but I would double check that :p. And I wouldn't know the first place to start with edge detection.
  9. Yes the CAN_COLLIDE tells the engine that the object being created doesn't need to go through a "safe position" to spawn check, basically putting it where it's "supposed" to be. Now obviously if it ends up somewhere without proper space, a vehicle might just explode, but I never minded a fireworks show here and there :p.
  10. If you go to place a module via F7, you can see the show info in the bottom right hand corner of the module editing menu, that will help you understand how to set them up with the other modules/triggers/objects/etc. As far as what each particular module does, you will just need to ask based on the modules your unsure of.
  11. Well if your saying only one player is in the trigger area, with the setup of the condition, the trigger won't fire because the condition is waiting for all 3 units to be in the trigger area...unless I'm mistaken.
  12. I'm happy you found a use for my script :), would you mind PMing me your modifications, I would have no problem adding you in the thank you notes. Sorry the other link didn't work out for your needs :p.
  13. Is this not a duplicate post to your other one? Sorry for not being able to link the post I'm referencing, as I'm currently on my phone and copying and pasting is being a pain. Iceman kindly covered me, thank you sir.
  14. Thanks Iceman, knew it was something along the lines of that :p.
  15. Try (_this select 0) instead of this, or maybe just "_this".
  16. jshock

    Code Stopped Working

    I wouldn't think this code wouldn't work, or that it would all the sudden just "stop" working, unless you may have possibly/accidentally made a change somewhere else that could be affecting the commands...
  17. Actually did some digging for a suicide bomb car/person script that may already be out there and found this:
  18. Possible zombies?: http://forums.bistudio.com/showthread.php?181485-Infected-Script-by-Gulozwood
  19. Well for the sqf arguement passing part, as that is within my scope of knowledge, also within the "if" check for RunScript you need to use the double equals, not the single, all you would need is: if (RunScript == 1) then {nul = [5,4,false,1] execVM "thatscript.sqf";};
  20. waitUntil {isTouchingGround _unit}; sleep 3;//give time for "settling" after landing { //gear changing code }
  21. At this point in time, yes it only works on units that are put down in the editor (as far as I'm concerned), I am/will be working on a way to have systems such as EOS/COS/MCC/Zeus work with the script I just haven't had time nor the brain power here lately. And maybe if I get bored one of these nights I can look into making a suicide car script :p.
  22. jshock

    Help with an action

    #Larrow has spoken:worship:
  23. You can use the Redressing Script, to use the CSAT, but make them look civilian, that way you won't have to worry about changing the rating values of the civilian side to make them enemies to BLUFOR. As far as suicide cars/civilians, I'm not sure of any other script out there except MCC (which is a mod), I have personally just used the vanilla editor with a trigger and a waypoint and "boom" there goes the car/civ, but I'm not sure if that is what you are looking for in-particular or if you are looking specifically for a script that spawns these in based on a number of different conditions.
  24. jshock

    Simple Icons

    You would just need another case under the switch as well as another icon to display for the object.
×