Ok.. What I wanted to accomplish is 98% complete.. All seems to be working as intended except for one part.. Which is driving me crazy now.
The Idea: Player/Groups have a base/camp to store their gear or vehicles.. pvp and gear loss is an option anywhere outside of these areas. So far completed and working: Only selected players are allowed in designated area.. while inside your small area you have temporary 'god-mode' and a slight repair to a few damages you may have upon entry. (working on disabling firing from inside base). Any other survivors with/without a vehicle entering the area will be givin a warning and then teleported to just outside the safe zone. Air vehicles are calculated in so they do not crash and are only detected within a vertical range so not to trigger as passing over.
The problem: We need vehicles inside this area to be immune to damage of all kinds.. whether a player is present or not. I don't know if its the route i need to take but the vehicle damage handlers seem to be listed as such:
I've tried disabling/enabling vehicle damage handler in my own manner. Through script and through triggers. I may have just formatted incorrectly, not sure at this point. If anybody has any info on any ways to do this WITHOUT a loop i would greatly appreciate any info. Anything at all to point in a direction i haven't tried or flip that switch in my head that says "why didn't i think of that"..
The Idea: Player/Groups have a base/camp to store their gear or vehicles.. pvp and gear loss is an option anywhere outside of these areas. So far completed and working: Only selected players are allowed in designated area.. while inside your small area you have temporary 'god-mode' and a slight repair to a few damages you may have upon entry. (working on disabling firing from inside base). Any other survivors with/without a vehicle entering the area will be givin a warning and then teleported to just outside the safe zone. Air vehicles are calculated in so they do not crash and are only detected within a vertical range so not to trigger as passing over.
The problem: We need vehicles inside this area to be immune to damage of all kinds.. whether a player is present or not. I don't know if its the route i need to take but the vehicle damage handlers seem to be listed as such:
Code:
vehicle_handleDamage = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\vehicle_handleDamage.sqf";
vehicle_handleKilled = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\vehicle_handleKilled.sqf";
I've tried disabling/enabling vehicle damage handler in my own manner. Through script and through triggers. I may have just formatted incorrectly, not sure at this point. If anybody has any info on any ways to do this WITHOUT a loop i would greatly appreciate any info. Anything at all to point in a direction i haven't tried or flip that switch in my head that says "why didn't i think of that"..