Despawn Zeds when player enters a vehicle

Discussion in 'Scripting Discussions' started by Goose QZ, Jan 22, 2018.

  1. Goose QZ

    Goose QZ New Member

    Joined:
    Dec 11, 2017
    Messages:
    11
    Likes Received:
    0
    Hello all, i an currently working on an epoch 1062 server, and there is a feature i would like to add (you may not agree with it but hey :p)

    I have seen it on a few servers, both epoch and overpoch where if a player has spawned zeds (say at a military camp), if they were to get into any vehicle, their zeds (the ones they spawned) would despawn. Could anyone perhaps link me or help me with a script that could do this please?

    PS- I could do a zed killer with a radius of x meters that activates when a player enters a vehicle, but thats not exactly what i want)
    Regards,
    Goose
     
  2. ShootingBlanks

    ShootingBlanks OpenDayZ Guru!

    Joined:
    Mar 31, 2013
    Messages:
    2,445
    Likes Received:
    337
    Well what I would use is the get in event handler https://community.bistudio.com/wiki/ArmA_2:_Event_Handlers#GetIn
    And the code for that event handler would be along the lines of a zombie shield . to delete the zombies they spawned I would take a look at the player disconnect File and see what happens because that's when the zombies that are owned by that player are deleted
     
  3. Goose QZ

    Goose QZ New Member

    Joined:
    Dec 11, 2017
    Messages:
    11
    Likes Received:
    0
    Aha i see. Ill look into that. Thanks for the reply :D
     

Share This Page