Jump to content

killzone_kid

Member
  • Content Count

    3971
  • Joined

  • Last visited

  • Medals

Everything posted by killzone_kid

  1. [nil,playerObj,"loc",rHINT,"message"] call RE;
  2. Basically just tested setUnconsious true and all it does is sets lifeState variable to UNCONSCIOUS. The player is able to move as before and nothing happens. Could someone shed a light on this? I would have expected player collapse dead and not be able to move but not being dead? Needed function indeed.
  3. killzone_kid

    publicVariableServer oddities

    hint is local should do nothing on dedicated server and would probably work on client if client is server
  4. I'd imagine you will have to spawn a parallel script that would create sound then delete it null = [] spawn { private ["_alarm","_time"]; sleep 5; _alarm = createSoundSource [your alarm params]; _time = time + 300; waitUntil {enemygivesup || time > _time}; deleteVehicle _alarm; };
  5. try camCreate maybe http://community.bistudio.com/wiki/camCreate
  6. You are attaching action to player and it will be only available to said player. Use respawn event instead. It will give you the corpse to which you can attach addaction so it will be global.
  7. killzone_kid

    AI attack only players

    Ignore my previous suggestion, I re-read your post.. Try adding "this setCaptive true;" in init for the nonplayable friendly units
  8. killzone_kid

    How to make crates respawn

    maybe you need addItemCargoGlobal
  9. _ai action ["NVGoggles", _ai]; _ai action ["NVGogglesOff", _ai];
  10. killzone_kid

    AI attack only players

    Make enemy and your team friends with setfriend http://community.bistudio.com/wiki/setFriend then add negative rating to those you want to be attacked with http://community.bistudio.com/wiki/addRating
  11. It works with ArmA 2 as it is. If you make any changes in Arma 3 I will change my blog post accordingly.
  12. I've summarised this in my blog http://killzonekid.com/arma-scripting-tutorials-how-to-switch-on-lazy-evaluation/
  13. Global command is not different to normal. create a box and run clear cargo global commands one after another on it.
  14. Probably not. objectfromnetid expects string as per description.
  15. killzone_kid

    Removing Map Rocks via IDs

    What about assigning it to the actual vehicle too before player sits on it? ---------- Post added at 12:32 ---------- Previous post was at 11:41 ---------- It is strange because you cannot even remove trees by setDamage 1 to them like you did in arma 2. I say it is alpha issue.
  16. Editor is your friend. This ^^^ doesnt work.
  17. killzone_kid

    Removing Map Rocks via IDs

    thats because player becomes vehicle when in vehicle
  18. you might want to look at clearweaponcargoglobal,clearmagazinecargoglobal,clearbackpackcargoglobal as well as clearitemcargoglobal commands. check the full commands list in my sig.
  19. killzone_kid

    Removing Map Rocks via IDs

    Try to hide it instead
  20. There is even quicker way 1. Doubleclick on map in Editor 2. Insert in init field: null = [] spawn {sleep 1; disableSerialization; call BIS_fnc_animViewer;}; 3. Preview
  21. You can put _target in cargo from anywhere by using action _target action ["moveToCargo", _vcl, 0];
  22. You are running this on client and 'player' object is always local to client machine so a bit confused about the use of if (!(local player)) exitWith {};
  23. could you show what you are doing to get variables from the server?
  24. did you define debug = 1; anywhere? try hint str debug; what does it say?
×