
TimedEvents
Triggers various types of events like Airdrops, Christmas, Helicopter & Tanks
Total Downloads: 2,434 - First Release: Jan 16, 2018 - Last Update: Mar 2, 2018
- 5/5, 5 likes
-
for those interested, i've been using this (from helicontrol) in my timers plugin
and call with callChinook(), but you can just add it to this plugin. should be simple
private readonly string chinookPrefab = "assets/prefabs/npc/ch47/ch47scientists.entity.prefab";
Code:private CH47HelicopterAIController callChinook(Vector3 coordinates = new Vector3()) { var heli = (CH47HelicopterAIController)GameManager.server.CreateEntity(chinookPrefab, new Vector3(0, 100, 0), new Quaternion(), true); if (heli == null) return null; float x = TerrainMeta.Size.x; float num = coordinates.y + 50f; var mapScaleDistance = 0.8f; //high scale for further out distances/positions var vector3_1 = Vector3Ex.Range(-1f, 1f); vector3_1.y = 0.0f; vector3_1.Normalize(); var vector3_2 = vector3_1 * (x * mapScaleDistance); vector3_2.y = num; heli.transform.position = vector3_2; heli.Spawn(); return heli; }
-
@kektus where abouts in the plugin code do you put that chinook code?
-
Any chance you can add chinook?