tarvin Posted February 19, 2015 Report Share Posted February 19, 2015 on "God mode" player allowDamage false; player addEventHandler [""HandleDamage"",{false}];"; off "God mode" player allowDamage true; player addEventHandler [""HandleDamage"",{true}];"; use "this allowDamage false" like as this video http://www.youtube.com/watch?v=d6cxUsRhsNA http://wiki.arma3.ru/index.php/allowDamage Link to comment Share on other sites More sharing options...
Dobrowney Posted February 19, 2015 Report Share Posted February 19, 2015 // _zonecoord = [[_center],_radius,_name,_string],[[_center],_radius,_name,_string]]; _zonecoord =[ [[13326.5,14515.2,0],150, 'Center', true],// Center GreenZone [[6192.46,16834,0],150, 'West', true],// West GreenZone [[18451.9,14278.1,0],150, 'East', true]// East GreenZone In your script you have these cords. If I wanted to move the cords would I use .... position[]={10190.044,25.138008,12419.594}; <<<< Do i use This one from the mission.sqf .. a=150; b=150; angle=-130.966; activationBy="ANY"; repeating=1; interruptable=1; age="UNKNOWN"; name="bazar1_m"; expCond="(vehicle player) in thislist;"; expActiv="[""MidSpawn"",[""Kill on greenzone = BAN""]] call bis_fnc_showNotification; player allowDamage false; player addEventHandler [""HandleDamage"",{false}];"; expDesactiv="[""EMidSpawn"",[""You may die""]] call bis_fnc_showNotification; player allowDamage true; player addEventHandler [""HandleDamage"",{true}];"; class Effects staticNpcPos[] = { { "C_man_hunter_1_F", { 4079.2, 4592.1, 0.00123596 }, 358.384 }, <<< Or do I use this one from the Config.CPP { "C_man_w_worker_F", { 4103, 4595.83, 0.00146484 }, 265.753 }, // Coastline trader { "C_man_shorts_4_F_asia", { 1899.42, 2944, 0.500793 }, 255.304 } Link to comment Share on other sites More sharing options...
Dobrowney Posted February 20, 2015 Report Share Posted February 20, 2015 Also I did everthing you posted but there is no text popping up in the msg box. Feels like something is missing . Should I have not put something into the description.ext . Something like #include "greenzone/notification.hpp" At the top ??? tarvin 1 Link to comment Share on other sites More sharing options...
tarvin Posted February 20, 2015 Report Share Posted February 20, 2015 Also I did everthing you posted but there is no text popping up in the msg box. Feels like something is missing . Should I have not put something into the description.ext . Something like #include "greenzone/notification.hpp" At the top ??? yes it need. i change it in the my post. Link to comment Share on other sites More sharing options...
Dobrowney Posted February 20, 2015 Report Share Posted February 20, 2015 Dang made the changes still not showing up .. http://cloud-4.steamusercontent.com/ugc/711904006910741181/846AC77BC02CD0BF50E5E503F0A27E4F0171BAA4/ Link to comment Share on other sites More sharing options...
Dobrowney Posted February 20, 2015 Report Share Posted February 20, 2015 I gave up on the notification.hpp and just did This Below .. It seems to work. AI still take damage from cars. With adding blocks around the traders so they can not be ran over and adding this: ProtectionZone_Invisible_F around them. The zone is now somewhat safe from trolls .. expActiv="titleText [""You Are Now Entering A Save Zone"", ""PLAIN DOWN"", 3]; player allowDamage false; player addEventHandler [""HandleDamage"",{false}];"; expDesactiv="titleText [""You Are Now Leaving A Save Zone"", ""PLAIN DOWN"", 3]; player allowDamage true; player addEventHandler [""HandleDamage"",{true}];"; class Effects Link to comment Share on other sites More sharing options...
Broadside Posted April 15, 2015 Report Share Posted April 15, 2015 Hi Tarvin, just trying to add and get this working on my server. I am very new to admin and coding. I have got the 3 spawn points working with the markers, and a limited area of godmode (dosn;t seem to cover the whole safe area for some reason??) and the notifications don't seem to be working atm either. But I actually have 5 spawn locations and i cant seem to figure out how to add 2 more to your coding here. Whenever i try cut and paste and changing the locations, all of the locations/markers etc dissapear when i use more than 3? any suggestions? Example of what i have tried in greenzone.sqf // _zonecoord = [[_center],_radius,_name,_string],[[_center],_radius,_name,_string]]; _zonecoord = [ [[12077.8, 5121.92, 0.00144958],150, 'Center', true],// Center GreenZone [[4569.52, 4524.24, 0.201431],150, 'West', true],// West GreenZone [[10688.6, 9428.98, 0.00144958],150, 'East', true]// East GreenZone [[2181, 9647, 1.525],150, 'North', true]// Lopatino GreenZone [[6364, 7797, 0.0888672],150, 'Mid', true]// Stary GreenZone and i added similar to the mission.sqm Thanks Link to comment Share on other sites More sharing options...
Stollenwerk Posted April 28, 2015 Report Share Posted April 28, 2015 I would like to let DZAI bandits trigger a sound when entering a defined area. class Item5 { position[]={15126.10, 0.1, 9690.63}; a=500; b=500; activationBy = "EAST"; repeating = 0; interruptable = 1; age="UNKNOWN"; name="Alarm"; expCond=" (((side _unit) == EAST) distance Alarm) < 400 ;"; expActiv = "playsound ""siren"";"; class Effects { }; }; First I used (player distance Alarm) but thought that AI aren't players. So I used side _unit in combination with EAST, OPFOR and ENEMY but that doesn't works. Is this possible anyway? Link to comment Share on other sites More sharing options...
bismarck100 Posted February 7, 2016 Report Share Posted February 7, 2016 On 04.01.2015 at 4:11 PM, nedfox said: Yes, in the end I had to tweak things; I had too much going on, but in the end this worked : Entering/leaving area : text message every time Entering (once) : Short music. class Sensors { items = 2; class Item0 { name = "dino_t"; position[] = {9073.572,18.866203,8503.228}; a = 1700; b = 1200; angle = -130.966; activationBy = "ANY"; repeating = 1; interruptable = 1; age = "UNKNOWN"; expCond = "(vehicle player) in thislist;"; expActiv = "titleText [""You are entering a DEADLY area where dinosaurs roam!"", ""PLAIN DOWN"", 3];"; expDesactiv = "titleText [""You've left the dinosaur area "", ""PLAIN DOWN"", 3];"; class Effects{}; }; class Item1 { name = "dino_s"; position[] = {9074.572,18.866203,8503.228}; a = 1700; b = 1200; angle = -130.966; activationBy = "ANY"; repeating = 0; interruptable = 1; age = "UNKNOWN"; expCond = "(vehicle player) in thislist;"; expActiv = "playSound ""01"""; class Effects{}; }; }; And you can attach it to the vehicle with the player, and instead track insert a link to the internet radio? )))) Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now