So i'm trying to use
bool CreateOrUpdateZone(string ZoneID, string[] args, Vector3 position = default(Vector3))
from the zone manager page but i haven't called hooks from another plugin before , not sure how to do it . Any hints ?
[DOUBLEPOST=1447963728,1447956472][/DOUBLEPOST]Tried this but still failingCode:public Vector3 GetPosition() { if (position == default(Vector3)) position = new Vector3(float.Parse(this.x), float.Parse(this.y), float.Parse(this.z)); return position; } void OnWeaponThrown(BasePlayer player , BaseEntity entity) { float xx = player.transform.position.x; float yy = player.transform.position.y; float zz = player.transform.position.z; args[0] = "name"; args[1] = "RaidZone"; ZoneManager?.Call("CreateOrUpdateZone", name , args , GetPosition());
Calling hook from ZoneManager to create a zone
Discussion in 'Rust Development' started by Codex 2, Nov 19, 2015.