Hello,
Im trying to edit the code of NoEscape, where it creates a RaidZone. I want to add the flag 'notp' to the zone, but since my coding skills are worse than my English I hope to get some advice here.
void CreateRaidZone (Vector3 position)
{
var zoneid = position.ToString ();
RaidZone zone;
if (zones.TryGetValue (zoneid, out zone)) {
ResetZoneTimer (zone);
return;
}
foreach (var nearbyZone in zones) {
if (nearbyZone.Value.Distance (position) < (raidDistance / 2)) {
ResetZoneTimer (nearbyZone.Value);
return;
}
}
ZoneManager.CallHook ("CreateOrUpdateZone", zoneid, new string []
{
"radius",
raidDistance.ToString()
}, position);
zones.Add (zoneid, zone = new RaidZone (zoneid, position));
ResetZoneTimer (zone);
}Where and how should I add the right call to get the flag notp?
(void) AddFlag(string zoneId, string flagString) // Adds the specified flag to the zone with the specified ID