Jump to content

Sciirof

Member
  • Content Count

    13
  • Joined

  • Last visited

  • Medals

Community Reputation

6 Neutral

1 Follower

About Sciirof

  • Rank
    Private First Class

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Thanks to everyone for the support I've not updated the script in a while and haven't responded to most of the recent feedback and questions. I'm now reworking the entire system and adding XP/level system (I will make sure you can easily turn that off or on)
  2. Ah I see, I must have overlooked it. Thanks a lot!
  3. I am currently working on a few things for the survival system and also working on a script for editing the init of all units from one script. It would make the script better because you wouldn't have to put in the line of code in all of those init fields as soon as that script is ready I will release an update.
  4. Thanks for pointing me out on that :) Fixed in 0.2 also more was added (can be found in the changelog).
  5. Multiplayer is supported and has been tested on dedicated. Buying things will be within the demo, selling things is still a WIP as I am still working a shop UI. Consuming will also be in the demo. Also multiple types of foods and a food and drinks UI is currently being worked on. Thank you for reminding me I did not say if it was MP supported!
  6. Thank you for the suggestions! I will be working on more features and a demo mission for next version. Also including a demo with a loadout shop and food/drinks shop. Again thank you for the suggestions!
  7. Hello everyone, I'm still learning to code but I made a simple survival system for a gamemode I am working on. So I decided to share it with you. It includes: A cash system A Hunger/Thirst system Multiplayer supported! Download Current version: 0.2.1 Author: Sciirof DropBox or No Mods Survival system v0.2.1 Changelog Version 0.2.1: Survival system fix (thanks to bad benson) Version 0.2: Player does not instantly die when hunger or thirst is at 0 or below (thanks to bad benson to point me out on this!) (Temp) I am still working on a food/drink inventory UI at the moment. For now it just saids how much drinks/food you have. (How to acquire food/water is in the demo) Demo mission added! Loadout shop in the demo WIP Features that are being worked on: Food/Drinks Inventory UI Arma 3 props used as food/drinks as inventory items for the inventory UI Random spawn positions for the food and drinks props Gun shop UI (Buy/Sell) XP/Leveling system License If you are to modify the scripts make sure to give proper credit to the original creator. If any of these scripts cause any sort of damage I am not held responsible. I cannot confirm if these scripts will work with any other scripts in Arma or your mission. Donate I am not the best out there, so donate only to those you respect or think deserve a donation! I am only a student the only reason the donation button is here is to save me drink. For a proper installation of this system in your mission file, please make sure to read the IMPORTANT.txt file.
  8. Thanks! The script works just fine for now. As you asked: Yes I am going to make it store the value in a database.
  9. Thanks for responding. So what I did this time I did this: resetCash.sqf //Reset cash when you respawn if (!isDedicated)then{ _killed=(_this select 0); _killed addEventHandler ["Killed", { _killed= (_this select 0); if (player == _killed)then{ cash=100; any = [ [ ["Died!","align = 'center' size = '0.7' font='PuristaBold'","#FF0000"], ["","<br/>"], [str (date select 3) + ":" + str (date select 4),"align = 'center' size = '0.7'"] //Show date when died ] ] spawn BIS_fnc_typeText2; (uiNameSpace getVariable "myUI_DollarTitle") ctrlSetText format ["$%1",cash]; _killed removeAllEventHandlers "Killed"; }; }]; }; and in the unit's init: null = [this] execVM "resetCash.sqf" I get no errors but the cash doesn't reset also I have tried it with addMPEventHandler and still no luck
  10. Hey folks, so I am working on a gamemode but when you get killed I want the player's cash to be reset but I can't get this to work. I have the feeling I have made a big misstake somewhere (still learning). Script: //Reset cash when you respawn if (!isDedicated)then{ _killed=(_this select 0); _killed addEventHandler ["MPKilled", { _killed= (_this select 0); if (player == _killed)then{ cash=100; any = [ [ ["Died!","align = 'center' size = '0.7' font='PuristaBold'","#FF0000"], ["","<br/>"], [str (date select 3) + ":" + str (date select 4),"align = 'center' size = '0.7'"] //Show date when died ] ] spawn BIS_fnc_typeText2; (uiNameSpace getVariable "myUI_DollarTitle") ctrlSetText format ["$%1",cash]; _killed removeAllEventHandlers "MPKilled"; }; }]; }; Thanks! - Sciirof
  11. Sciirof

    Trigger stays completed

    try putting in condition this
  12. I'm not new to scripting, but still learning. Altho if you want to specify the position even more you could add https://community.bistudio.com/wiki/selectBestPlaces I am currently working on a script like this but for random vehicle spawning I'll post the script once it's done so it helps you out. But the script you have atm might do the job but will probably have some bad results.
  13. I hope this helps out. https://community.bistudio.com/wiki/findEmptyPosition
×