kaotix Posted September 12, 2013 Report Share Posted September 12, 2013 I was wondering if anyone had a way to detect if a player was inside their base that is made with the new modular system. The problem I have is that because it technically isn't a structure I can't tell if they are 'inside' it or not. I am planning on checking if a player is inside their base before certain events can continue and are currently stumped as to how to do this. Any help is greatly appreciated. Thanks Link to comment Share on other sites More sharing options...
0 Snowmobil Posted September 13, 2013 Report Share Posted September 13, 2013 Maybe you could use the Safezone script http://dayzepoch.com/forum/index.php?/topic/386-better-safezone-maybe/ and modify it. But you'd have to manually add the center of their bases to the sensors. Link to comment Share on other sites More sharing options...
0 kaotix Posted September 13, 2013 Author Report Share Posted September 13, 2013 Not really what I'm after, since it would all have to be dynamic really. Having to get each persons base location and dropping a safezone on it would be a real hassle. Thanks for the suggestion though. Link to comment Share on other sites More sharing options...
0 CarlJ Posted September 13, 2013 Report Share Posted September 13, 2013 would it be possible to add a safezone to the plotpole? Link to comment Share on other sites More sharing options...
0 kaotix Posted September 13, 2013 Author Report Share Posted September 13, 2013 Interesting idea! I was looking at boundbox which is a function to check the bounds of an object, so this could be an option. But then if you only had a plot pole and no other objects (walls/doors etc) it would think you were 'inside' when you're not... I honestly think it's a lost cause since it doesn't make a 'structure' of any kind. It's just a group of objects. (or vehicles actually) Link to comment Share on other sites More sharing options...
0 Markk311 Posted September 17, 2013 Report Share Posted September 17, 2013 Something I had to use in one of my scripts could help you waitUntil { sleep 1; _playerPresent = false; {if((isPlayer _x) AND (_x distance objectname <= 30)) then {_playerPresent = true};}forEach playableUnits; (_playerPresent) }; Link to comment Share on other sites More sharing options...
0 kaotix Posted September 18, 2013 Author Report Share Posted September 18, 2013 Thanks Markk311, I've give that a go and see how I get on. Link to comment Share on other sites More sharing options...
Question
kaotix
I was wondering if anyone had a way to detect if a player was inside their base that is made with the new modular system.
The problem I have is that because it technically isn't a structure I can't tell if they are 'inside' it or not.
I am planning on checking if a player is inside their base before certain events can continue and are currently stumped as to how to do this.
Any help is greatly appreciated.
Thanks
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now