Scripting/Squirrel/Functions/Vehicle.SetPart: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
(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...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
==Usage== | ==Usage== | ||
<code>vehicle.SetPart(part,state);</code> | |||
==Arguments== | ==Arguments== | ||
part: Part's ID | <u>part</u>: Part's ID | ||
state: Crashing state | |||
<u>state</u>: Crashing state | |||
==Parts== | ==Parts== | ||
(these were tested on a custom vehicle) | (these were tested on a custom vehicle) | ||
0 = front bumper | 0 = front bumper | ||
1 = back bumper | 1 = back bumper | ||
2 = right door from front view | 2 = right door from front view | ||
3 = left door from front view | 3 = left door from front view | ||
8 = | |||
9 = | 8 = hood | ||
9 = trunk | |||
==Crashing states== | ==Crashing states== | ||
0 = not affected part | 0 = not affected part | ||
1 = crashed part | 1 = crashed part | ||
2 = chashed #2, only valable to trunks and hoods | 2 = chashed #2, only valable to trunks and hoods | ||
3 = missing part | 3 = missing part |
Latest revision as of 13:05, 26 August 2017
Description
Removes, repairs or crashes a part from the car.
Usage
vehicle.SetPart(part,state);
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 = hood
9 = trunk
Crashing states
0 = not affected part
1 = crashed part
2 = chashed #2, only valable to trunks and hoods
3 = missing part