Vehicle Constructor (PredicateModel, Vector3, Single)

RAGE Plugin Hook Documentation

[This is preliminary documentation and is subject to change.]

Initializes a new instance of the Vehicle class.

Namespace:  Rage
Assembly:  RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
Syntax

public Vehicle(
	Predicate<Model> modelPredicate,
	Vector3 position,
	float heading
)

Parameters

modelPredicate
Type: SystemPredicateModel
A method that determines whether a model should be considered when choosing a random model for this Vehicle. Only vehicle models will be passed to this method. Cannot be null.
position
Type: RageVector3
The position to spawn at.
heading
Type: SystemSingle
The heading to spawn in.
See Also

Reference