Search the Community
Showing results for tags 'restrict'.
Found 3 results
-
Kill/Destroy AI units that leave the area/Trigger Zone
Joedapro posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I need either a script or in trigger action that will kill AI units that leave the area. I want to also separate the types, example: I have an inner radius lets say 250 by 250 that AI infantry units must stay in. If they leave this area then they will die. Then I have an outer radius, 500 by 500, that allows AI Land vehicles to operate through, they are also allowed in the inner radius but if they leave the outer radius then they will be destroyed. The land vehicles include all land vehicles, not just tracked and tanks. I have thought of using multiple triggers to compare what is in the larger circle which is not in the smaller circle at which the trigger will kill the AI that is not within both triggers but I am not sure how to do that or if there is an easier way. -
I was wondering if there was a certain way to restrict certain classes to certain users on my server? The server runs on a modified Invade and Annex base, so classes are currently setup like this: class Item0 { position[]={15280.771,17.870386,17400.666}; azimut=-201.653; special="NONE"; id=0; side="WEST"; vehicle="SWOP_Clonetrooper"; player="PLAY CDG"; leader=1; rank="LIEUTENANT"; skill=0.60000002; text="s40"; init="(group this) setGroupId [""ALPHA""];"; description="Alpha Squad Leader"; syncId=0; synchronizations[]={70}; }; Vehicle is the name of an NPC, and spawns you with all the equipment the NPC wears. I think restricting the "vehicle" string to a certain User ID would be the best course of action. Something like: If player = SWOP_Clonetrooper and Player UID is not in list then display: You are not whitelisted for this slot and then something with BIS_fnc_endMission Obviously this is not how code works, and would appreciate any help!
-
Hello, I've been succesfully using this "safezone.sqf" script to restrict small arms fire, throwing grenades and placing explosives inside a "spawn protected area" which essentially is a trigger area. I assume the script itself is an evolution of grenadeStop.sqf by Bake or it could be from completely different origins who knows. In short what the script does is that it will delete the fired projectile, thrown grenade or placed explosive and display a message that can be customized freely with #define MESSAGE "Type your message here" To add the restriction to certain projectile, grenade or explosive the classname needs to be typed in the SPAWN_Restriction = -field I was trying to use the aforementioned script to also restrict vehicles from firing their guns inside the spawn protected area but it is so that declaring the ammo classnames (that are used in different vehicles) in the SPAWN_Restriction = ["insert ammo classname here"]; is not enough to get the job done. The question here would be that: whether the safezone.sqf can be adapted in a way so that using vehicle guns (or "turrets") to shoot inside the spawn protected area would also be restricted? (if so, any suggestion on how-to?) OR if I should start looking for a completely different approach with the issue at hand (if so, any suggestions what should that approach then be)? There weren't too many discussions available that did share somekind of similarity with what I'm asking here. I actually only found this and this but well, for me those didn't give the comforting "I got this and I know I can do this" feeling. Thus here I am, asking questions. Greetings Asmodeuz
- 2 replies
-
- fired
- addeventhandler
- (and 4 more)