EngineReplaceCOL

From Multi Theft Auto: Wiki
Revision as of 13:03, 26 November 2007 by ChrML (talk | contribs)
Jump to navigation Jump to search

Dialog-information.png This article needs checking.

Reason(s): The argument order might be vice versa

This function replaces the collision file of the given model id to the collision file passed. Use engineLoadCOL to load the collision file first.

Syntax

bool engineReplaceCOL ( col theCol, number modelID )

Required Arguments

  • theCol: The collision file to replace with
  • modelID: The model ID whose collision file you want to replace

Returns

Returns true if the collision was successfully replaced, false or nil if the collision could not be replaced for a reason.

Example

This example does...

--TODO

See Also