MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / CreateEffectVehicleRel

Function CreateEffectVehicleRel

src/effectvehicle.cpp:610–613  ·  view source on GitHub ↗

* Create an effect vehicle above a particular vehicle. * @param v The vehicle to base the position on. * @param x The x offset to the vehicle. * @param y The y offset to the vehicle. * @param z The z offset to the vehicle. * @param type The type of effect vehicle. * @return The effect vehicle. */

Source from the content-addressed store, hash-verified

608 * @return The effect vehicle.
609 */
610EffectVehicle *CreateEffectVehicleRel(const Vehicle *v, int x, int y, int z, EffectVehicleType type)
611{
612 return CreateEffectVehicle(v->x_pos + x, v->y_pos + y, v->z_pos + z, type);
613}
614
615bool EffectVehicle::Tick()
616{

Callers 12

FloodVehicleFunction · 0.85
HandleCrashedTrainFunction · 0.85
HandleBreakdownMethod · 0.85
ShowVisualEffectMethod · 0.85
RoadVehIsCrashedFunction · 0.85
HandleCrashedAircraftFunction · 0.85
HandleAircraftSmokeFunction · 0.85
CrashAirplaneFunction · 0.85
DisasterTick_ZeppelinerFunction · 0.85
DisasterTick_UfoFunction · 0.85

Calls 1

CreateEffectVehicleFunction · 0.85

Tested by

no test coverage detected