Jump to content
Emeraldpointgaming

[Request] Zombie base defense script

Recommended Posts

If it is possible could  someone make a zombie base defense script?

Like players could tie up zombies outside their base as a form of defense against base raids, i think this script would be a really cool feature.

i will pay a little bit of money if i can get a script capable of this.

just think how good a script like this would be!

Share this post


Link to post
Share on other sites

You could use zombies as objects and let the player place them. But the only way to make them not despawning when noone is in the base is to make the invulnerable. Atleast that's the only idea I have. So they couldn't be defeated and they would also cause a lot of lag.

Share this post


Link to post
Share on other sites
Just now, DAmNRelentless said:

You could use zombies as objects and let the player place them. But the only way to make them not despawning when noone is in the base is to make the invulnerable. Atleast that's the only idea I have. So they couldn't be defeated and they would also cause a lot of lag.

nice idea,, or use an object as launcher and place a code runing by server side-- using  while {true} do {};  or waituntil nearest players-- to spawn some zeds.

something like.. (dirt idea without tests)

while {true} do {
 sleep 1;

  spawn_area = 10;
  _playerPos = getPos player;
  _nearArea = nearestObject [_playerPos, "YOUR OBJECT ID HERE"];
 
  if (!isNull _nearArea) then {
  _pos2 = getPos _nearArea;
   waitUntil{{isPlayer _x && _x distance _pos2 < 10  } count playableunits > 0};
    
    _zeds = ["zZombie_Base","z_villager1","z_villager2","z_villager3","z_suit1","z_suit2","z_worker1","z_worker2","z_worker3","z_soldier","z_soldier_heavy","z_soldier_pilot","z_policeman","z_teacher","z_doctor","z_hunter","z_priest"]call BIS_fnc_selectRandom;
   _zCreate = createAgent [_zeds, _pos2, [], spawn_area, "NONE"];
  };
};

 

Share this post


Link to post
Share on other sites

@Emeraldpointgaming another way to do it.. and for prevent  the lag as damrelentless said.. is use this one

and then create some deployable object allowed only in plot area.. and use the same code from the script above to re-attach the zed in this object.

i mean.. pick up some zeds spawned by default .. carry on into vehicles to your base.. deploy an object and attach this zeds into this objects.

for deploy the object you can use deploy-anything mod.. or this one

 

here you got another script that you can rewrite easy for use in your idea.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Similar Content

    • By Bricktop
      I found these but they don't work ...
      ==========
      Does anyone have a working time acceleration script for 1061? 
      - OR -
      Does anyone besides infistar have a script for players to vote day/night?
      ==========
      Thanks,
    • By Bricktop
      Does anyone have a working script for 1061?
      Looking for:
      LOCKED vehicles inside a plot pole radius to be in god mode even when the player logs out.
      Thanks for any help, 
       
      EDIT:  found this but it does not work as intended - 
       
    • By nidico100
      Hey,
      maybe someone can help me with a script idea. I thought about, how nice would it be to look for example a Nice Wooden Shed.
      Just via Scroll Menu like on locked Doors. Then show the combo lock screen with the three numbers and unlock it.
      There is no need of any animation, just that the door can't get opened without unlocked.
      Is it possible?
    • By Zupa
      Fellow epoch 2 players and server owners
       
      We are currently working together with community developers to get the 1.0.6 patch ready for release. Awol gave me rights to the codebase of Epoch Arma 2. This means I can code review and accept/deny any code passed to the Github. I'm also reviewing all the issues reported on the Github to see if it's relevant and debate if coding needs to be done. I understand not everyone is Github experienced. So i kindly accept bug reports or requests in this topic. I do not guarantee it's get fixed or added. But it will definitely throw it into discussion.
       
      In the future i'm planning to get a dev server up so we can do some testing on everything we added since the latest patch.
      I already want to thank every person who worked or will work on the DayZ-Epoch code.
       
      A full (rolling) change log will be posted over time ( When i get free time to check all merge request done by everyone since last patch).
      All progress can be followed on the DayZ-Epoch Github:
       
      https://github.com/vbawol/DayZ-Epoch
       
      The following link show you all the changes since the 1051 release.
       
      https://github.com/vbawol/DayZ-Epoch/compare/Release_1.0.5.1...master
       
      Changelog: 
       
      [NEW] RedRyder BB Gun by @arma2WillRobinson
      [NEW] DB Backup script. @RimBlock
      [NEW] Use DayZ_UseSteamID = false; in your init.sqf to use the old PlayerUID, instead of SteamID @icomrade
      [NEW] UI Update - Graphical and code changes, enable using Dayz_Dark_UI = true; in init.sqf. @hogscraper
      [NOTE] It's recommend to convert to the new SteamID system if possible, new servers should not use DayZ_UseSteamID = false;
      [NEW] Snap building (disabled by default), use DZE_modularBuild = true; in your init.sqf to enable. @raymix
      [NEW] Modular/Function based player_build for addon makers and modders. @raymix (more info and concepts - )
      [NEW] Added "RedRyder" and "350Rnd_BB_Magazine" to loot pile. #1456 #1457 @Namindu
      [NEW] Added tree support for Isla Duala. @Utomnia

      [CHANGED] An infection chance of -1 disables self-transfusion infection. 0 is always infected. (DZE_selfTransfuse_Values) @icomrade
      [CHANGED] Removed weapons from Traders hands and made them stand with arms by their side. @SilvDev
      [CHANGED] Tweaked fuel capacity variables for vehicles. @RimBlock
      [CHANGED] Tweaked rotate_logs.bat to incorporate the day of the week for better organization @Raziel23x

      [FIXED] Backpack wipes when changing clothes. #1361 @icomrade
      [FIXED] CH53 gear when locked #1364 @icomrade
      [FIXED] Infinite loop when crafting ore into bars #1351 @icomrade
      [FIXED] Only first kill showing on death boards #1362 #1124 @vbawol @icomrade
      [FIXED] Crossbow quivers not working #1355 @icomrade
      [FIXED] Crash_spawner & Supply_drop modules spawning inaccessible loot piles #1408 #1390 @Uro1
      [FIXED] Undefined variable "_weapon" in fnc_plyrHit.sqf when killer is driving a vehicle #1420 @ebaydayz
      [FIXED] Fire cleanup diag_log error in server_functions.sqf #1421 @ebaydayz
      [FIXED] NearestObjects position error in server_playerSync.sqf #1425 @ebaydayz
      [FIXED] Corrected ClassName type for CH53_DZE and BAF_Merlin_DZE. @Cinjun
      [FIXED] Some counts reverted to forEach - count loops can not be nested inside other count loops #1491-#1495 @ebaydayz
      [FIXED] Safes empty when opening after restart #1467 @ebaydayz
      [FIXED] Dynamic_vehicle spawning non-upgradable classes of hilux1 & datsun1. @Uro1
      [FIXED] Eating while inside a vehicle did not drop empty can @deadeye2
      [FIXED] Zombie loot error when using loot tables in mission file @deadeye2
      [FIXED] Trader menu expected array error #1618-1620 @ebaydayz
      [FIXED] Loading screen issue where you can walk around and see a black screen #1610 @deanreid
      [FIXED] Rare inventory wiping on login. @Mikeeeyy
      [FIXED] Wrong items return when deconstruction a bag fence. @seb3sec
       
      [uPDATED] .hpp files updated in dayz_epoch_b CfgLootPos > CfgBuildingPos. @Uro1
      [uPDATED] .bat files updated in Config-Examples @Raziel23x
      [uPDATED] Updated all config.cfg in Config-Examples, Added Default Steam Ports and Updated Layout. @Namindu
      [uPDATED] Epoch.sql, 1.0.5_Updates.sql & CfgServerTraders with correct classnames for upgradable hilux1 & datsun1 versions. @Uro1
      [uPDATED] mission.sqm to compact format from DayZ Mod 1.8.3 @ebaydayz

      [iNFO] (EXTREMELY IMPORTANT) Server owners MUST update their required build and beta to 125548
      [iNFO] requiredSecureId is deprecated in server.cfg.
    • By iCantResist
      Hi , 
       
      i would like to know how to auto restock the traders in A3 epoch , automaticly after restart because now it onley stock what is sold to them.
       
      any help would be VERRY appriciated ! 
      so please provide me of a step by step tutarial how to do it , also change the loot tables ( mission boxes that are called in and such ) 
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...