public void CreateHealthPickupByPos(Vector3 pos) { var exampleEntity = FpsEntityTemplates.HealthPickup(Vector3f.FromUnityVector(pos), 100); var request = new WorldCommands.CreateEntity.Request(exampleEntity); m_CommandSender.SendCreateEntityCommand(request, OnCreateEntityResponse); }
private static void AddHealthPacks(Snapshot snapshot) { // Invoke our static function to create an entity template of our health pack with 100 heath. var healthPack = FpsEntityTemplates.HealthPickup(new Vector3f(5, 0, 0), 100); // Add the entity template to the snapshot. snapshot.AddEntity(healthPack); }