08.11.2015, 16:19
@tampz: Yes, this is correct. The VehicleData class will be instantiated when the Vehicle is created automatically. You can use the onInit() function in your VehicleData class to initialize additional data and use the onDestroy() function to destroy data (will be called when the vehicle is destroyed using .destroy(), not when health = 0).