Search results

  1. P

    Testing the Zombies Killed Variable - Looking for help

    Thanks for the suggestions :) After more fooling around with the script, I discovered my problem was a timing issue and I was trying to look at the zombie kills a little too soon after log in. I added a 1 second delay to the script and all is good.
  2. P

    Testing the Zombies Killed Variable - Looking for help

    I want to add a script to my server that will set some variables, based on the number of Zombie Kills the player has. I'm using the line of code from my custom debug monitor to retrieve the number of zombies killed. Here's what I've been trying ...
  3. P

    dayZ Illuminant Tower Lighting (Power Generator Option)

    Thanks for the response. Changing the brightness variable works well for me. :)
  4. P

    dayZ Illuminant Tower Lighting (Power Generator Option)

    I've been using this script for a while to illuminate a base. I decided to write a "light switch" script that would allow players to turn the tower lights on and off. The script works, and when the switch is turned on, players in the base see the lights come on. The problem I have is when...
  5. P

    Confirming that a player is in-game after log-in (Help Request)

    Thanks for the information. The animal spawn check works for me :)
  6. P

    Confirming that a player is in-game after log-in (Help Request)

    I have a script that I need to execute from my Mission File, init.sqf, once the player is in-game properly (not before). I currently have a timer set up to create a delay after log-in, before the script runs. The problem I have is that the time varies from log-on until the player is in-game...
  7. P

    Player starts with Starting Load Out every Log In ? (Help Request)

    I'm looking for a way to have players revert to the server's starting load out every time they log in. In other words, if they log out, or go into the lobby and log back in, their current inventory is wiped and they have the starting load out again. Any one know how to do this? Any help is...
  8. P

    Terminating a Script on Sensor Exit - Looking for Help

    Nice. Thanks a lot meshguru99 :)
  9. P

    Terminating a Script on Sensor Exit - Looking for Help

    I have several Sensors on my server. Until now, when the player exits the Sensor area , the script that was triggered by the Sensor terminates and all is well. Now I need a way to terminate a different script when the player leaves the Sensor. I've been trying to add the Terminate command...
  10. P

    Air raid - bombing and siren

    I've had a lot of fun with this script and used it in a couple of server events :) I've been looking for a way to get an AI helicopter "taxi" service working. I tried modifying Axeman's AI bus route, but I couldn't figure out how to get the helicopter to land at the stops. So, I've fooled...
  11. P

    Item Crafting and Weapon Accessories

    Binoculars and Rangefinders are classified as weapons so ... player removeWeapon "Binocular"; //remove the used item from inventory And so on.
  12. P

    Detect Player's Backpack Type?

    Nice. Thanks Matt :)
  13. P

    Detect Player's Backpack Type?

    I'm working on a script that requires the player to be wearing an ALICE pack. I know how to check for inventory and tool belt items and weapons ... if ("PartWoodPile" in magazines player) then { if ("ItemKnife" in items player) then { But I can't figure out how to check to see if the player...
  14. P

    Sarge AI: Having issue turning off Military.

    In the SAR_config.sqf file, find this ... // default values for dynamic grid spawning // ----------------------------------------------- // maximum number of groups / grid SAR_max_grps_bandits = 1; SAR_max_grps_soldiers = 1; SAR_max_grps_survivors = 1; // chance for a group to spawn (1-100)...
  15. P

    Enable a self action with a variable? Looking for help.

    Well ... I finally got it to work :) Turns out if I assign the value of playerCredits to another variable in the self actions script, and work with the new variable instead of playerCredits, it works like a charm. I guess this is like re-initializing or refreshing the variable value ... or...
  16. P

    Enable a self action with a variable? Looking for help.

    Okay :) Here's how it works ... In my init.sqf, I initialize the global variable playerCredits ... playerCredits = 0; // Credits Initialize I have a Buy and a Sell area on my map. In my mission.sqm I have two "Domes" defined that will detect if a player enters or exits either area. When...
  17. P

    dayZ (arma) AI Controlled Bus Route.

    Okay, I discovered a bug in the "always healing" version of my script addition. As you feared, it enables players to leave the bus and still have the transfusion cycle running. :( I fixed the problem by adding the canHeal condition. I edited my original post and now it works properly :)
  18. P

    dayZ (arma) AI Controlled Bus Route.

    I decided to make the npc guy in the back of the bus a “medic”. :) With this version of player_join_bus.sqf, fifteen seconds after the player boards the bus, they are bandaged and transfused. You can set the delay to something other than fifteen seconds and can set the amount of blood...
  19. P

    Enable a self action with a variable? Looking for help.

    Thanks AlienX. When I saw your post I thought that might be my problem. The global variable playerCredits is initially defined as a numeric variable, but I thought that using it in the line ... titleText [format["Hello. You have this many credits to spend: %1",(playerCredits)], "PLAIN...
  20. P

    Enable a self action with a variable? Looking for help.

    Thanks for the response. I'm using virtually the same code for my "sell" section which works just fine. For example ... if ("ItemJerrycan" in magazines player) then { hasS2parts = true; } else { hasS2parts = false; }; if (hasS2parts) then { if (sell2 < 0) then { sell2 = player addAction...
Back
Top