Template:I BaseVehicle: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Reformatted to use IO templates, added to Input Templates category)
m (allowed it to call the base version of I BaseEntity.)
Line 1: Line 1:
<noinclude>{{tip|Put <code>{{!}}base{{=}}1</code> when calling this template to have it show the Src13 version of the template instead of the AS version.}}</noinclude>
{{ScrollBox|title=BaseVehicle|noscroll=true|
{{ScrollBox|title=BaseVehicle|noscroll=true|
{{IO|Action|param=float|Set the speed of the action animation. {{todo|What does this mean?}}}}
{{IO|Action|param=float|Set the speed of the action animation. {{todo|What does this mean?}}}}
Line 5: Line 6:
{{IO|Lock}}
{{IO|Lock}}
{{IO|Unlock|Prevent/allow the player from entering ''or exiting'' the vehicle.}}
{{IO|Unlock|Prevent/allow the player from entering ''or exiting'' the vehicle.}}
{{I Targetname}}
{{#if: {{{base|}}} | {{I BaseEntity|base=1}} | {{I BaseEntity}} }}
}}<noinclude>
}}<noinclude>
[[Category:Input Templates|BaseVehicle]]
[[Category:Input Templates|BaseVehicle]]
</noinclude>
</noinclude>

Revision as of 13:24, 29 April 2022

Tip.pngTip:Put |base=1 when calling this template to have it show the Src13 version of the template instead of the AS version.
BaseVehicle:
Action <float>
Set the speed of the action animation.
Todo: What does this mean?
TurnOn
Start engine and enable throttle.
TurnOff
Stop engine, disable throttle, engage brakes.
Lock
Unlock
Prevent/allow the player from entering or exiting the vehicle.