Jump to content

Midnighters

Member
  • Content Count

    894
  • Joined

  • Last visited

  • Medals

Everything posted by Midnighters

  1. Midnighters

    Teleporting via user action (SOLVED)

    Why are we using mp still? Whst you wrote there is pretty similar to what i had wrote above. Conditions great and all.
  2. Midnighters

    Teleporting via user action (SOLVED)

    RemoteExec will solve your JIP issues. I dont understand why it wouldnt work. To teleport? This addAction["teleport",{_this setPos getMarkerPos "marker_nimitz"}]; I would recommend you to put this in the initplayerlocal otherwise if its being executed on a flag. There would be no jip issues
  3. Midnighters

    Making AI avoid mines

    Indeed, away from home right now. Just curious if you knew off the top of your head.
  4. Midnighters

    Make the player hold animation

    https://community.bistudio.com/wiki/inputAction inputAction should be really useful for this kind of stuff. You can assign code to a user control or any other type of keyboard control, they have all of them there. just execute something like this locally (initPlayerLocal or similar) : if(inputAction "User1" > 0) then { hint "We're pressing User1!"; }; and you can use BIS_fnc_loop for a looping cycle, otherwise it'll only see if the input action is active initially. ["itemAdd",["inputLoop",{ if(inputAction "User1" > 0) then { hint "we're pressing User1!"; }; }]] call BIS_fnc_loop; one thing to note, instead of returning a boolean. InputAction will return a 1 or a 0. 1 being active and 0 being not active.
  5. Midnighters

    Making AI avoid mines

    what about naval mines?
  6. Midnighters

    Teleporting via user action (SOLVED)

    [this,["Teleport Action",{_this setPos getMarkerPos "marker_nimitz"}]] remoteExec ["addAction",0,true]; I believe this should work. Not entirely positive though. should be able to add it to the player. BUT, I believe you're adding this to the nimitz carrier? I recommend you see what the height of the ship is from sea level.
  7. Midnighters

    Removing Bushes and Trees

    aye, yes. Very cool.
  8. Midnighters

    Removing stanima?

    Why? if the above code didn't work. 3D eden enhanced wouldn't do any better. ACE is the problem, no documented custom functionality for it either.
  9. Midnighters

    Removing stanima?

    okie dokie. Look forward to hearing back then, this is a rather confusing situation,
  10. Midnighters

    KP Fuel Consumption Script

    Understandable. Tricky tricky when it comes to finding things outside of ammo,backpacks,weapons,etc. Crates even? That'll be weird. Especially since there is no real documentation for ACE and their cargo system to be scripted with the mission. I know very possible to do just the weapons,items,ammo, etc. ideas?
  11. Midnighters

    Removing Bushes and Trees

    interesting point Larrow brought up in another thread: if you want to find out a building classname for use in the object array in the debug console you can type in a watch field: typeOf cursorTarget; thought this might be interesting while were on the line of removing terrain objects.
  12. Midnighters

    Adding specific units into an array

    I'd say domination is a good start. But to what I've heard a lot is that Zeno didn't do so well in terms of getting performance nailed. Specifically because there was extra code that wasn't needed to do the same thing? not sure.
  13. Midnighters

    Adding specific units into an array

    are you looking to put all the units to be found dead or alive in an array? The title and your post is a bit mismatched. but you can use commands like append https://community.bistudio.com/wiki/append ex: _array1 append _array2 //put the contents of _array 1 into _array 2 you could also use a trigger, and pass "thisList" into your script. and you could get all of the units within that trigger area when activated.
  14. Midnighters

    Custom keys to activate scripts

    Cool. thanks.
  15. Midnighters

    reloadMagazine EH

    Whoops, edit now. Not sure if this would be possible. bump.
  16. Midnighters

    KP Fuel Consumption Script

    Very cool, I still think this is pretty cool. Especially since anything written for things like fuel consumption beforehand is now either obsolete or broken.
  17. Midnighters

    Loading mods on server

    Am I wrong? Does NSS Admin Console not have a scripted form? I swear I had a mission running with it not too long ago, did it get removed?
  18. Can't you just pass variables into the expression field in the respawn module?!?
  19. could use nearestObjects . _nearest = nearestObjects[player,["Land_i_Stone_Shed_V1_F",],20]; while{true} do { { if(_x distance player < 1) then { hint "We're stuck?"; }; } forEach _nearest; }; _nearest is a variable that'll find the nearest objects with a specified radius based off of position. I have specified "Land_i_Stone_Shed_V1_F because that's a building you can get stuck in I suppose. that's what I got off the top of my head. Don't know if the distance would actually be greater, and if that distance measures from the center of the model. Letme know, or if anyone else has any input on this?
  20. Midnighters

    Removing stanima?

    I'd try just doing this: player addEventHandler["Respawn",{ player enableFatigue false; player forceWalk false; }]; make sure you have no ACE advanced fatigue, as it's a different system alltogether. I think the lobby method is really neat, but I believe you're just looking to force fatigue off?
  21. Midnighters

    Removing stanima?

    your best bet is to remove the advanced fatigue ace pbo. unless ACE has some documented form?
  22. Midnighters

    Loading mods on server

    NSS Admin Console is also in script form. No need for a modification if you're worried about downloading mods. Mods always provide better performance and better integration at that though
  23. Midnighters

    Custom keys to activate scripts

    Input action is executed locally yes?
  24. Midnighters

    Helicopter AI Broken in 1.66?

    Are you a subordinate to the units? Sometimes I found that commanding units that were higher in rank, they denied my order but without any radio message.
  25. Midnighters

    KP Fuel Consumption Script

    this is a pretty interesting subject. It'd be kind of cool if you could modify this for cargo weight and such. maybe adjust the speed threshold? 5 seems kind of low
×