Scripting/Squirrel/Functions/Vehicle.SetPart

From Vice City Multiplayer
Revision as of 12:41, 26 August 2017 by NicusorN5 (talk | contribs) (Created page with "==Description== Removes, repairs or crashes a part from the car. ==Usage== [code]vehicle.SetPart(part,state);[/code] ==Arguments== part: Part's ID state: Crashing state ==P...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

Description

Removes, repairs or crashes a part from the car.

Usage

[code]vehicle.SetPart(part,state);[/code]

Arguments

part: Part's ID state: Crashing state

Parts

(these were tested on a custom vehicle) 0 = front bumper 1 = back bumper 2 = right door from front view 3 = left door from front view 8 = trunk 9 = hood

Crashing states

0 = not affected part 1 = crashed part 2 = chashed #2, only valable to trunks and hoods 3 = missing part