ILocalVehicle
Interface · Namespace OMX.ModAPI · Assembly OMX.ModAPI.Shared.dll
public interface ILocalVehicle : IVehicleThe local player’s own bus, which a client resource can drive. Writes are checked when called and applied on the next frame, before the vehicle’s scripts run.
Extends: IVehicle
Properties
Section titled “Properties”TriggerFired
Section titled “TriggerFired”IEventSource<VehicleTriggerFired> TriggerFired { get; }Methods
Section titled “Methods”FireTrigger
Section titled “FireTrigger”bool FireTrigger(string name);Runs a script trigger, like a key or a click in the cab. False when there is no such trigger.
Parameters
namestring
Returns bool
HasTrigger
Section titled “HasTrigger”bool HasTrigger(string name);Parameters
namestring
Returns bool
SetNumber
Section titled “SetNumber”bool SetNumber(string name, float value);False when the vehicle has no such variable or the value is not finite.
Parameters
namestringvaluefloat
Returns bool
SetString
Section titled “SetString”bool SetString(string name, string value);False when the vehicle has no such string variable.
Parameters
namestringvaluestring
Returns bool
