- Documentation
- Client functions
- engineReplaceCOL
Function
engineReplaceCOL
Replaces an object model's collision with one from engineLoadCOL or engineGenerateCOL (also for map objects with that number and the day/night pair model). Objects only, not peds and vehicles. If the model does not exist in the game yet (a new engineRequestModel model while the player joins or a resource restarts), the collision waits and applies as soon as the model appears; a model number that does not exist gives false.
Syntax
bool engineReplaceCOL(col theCol, int modelID)Arguments
theColcol- The collision.
modelIDint- Object model number.
Returns
true on success.
Example
engineReplaceCOL(engineLoadCOL("modele/rampa.col"), 1634)