EngineReplaceCOL: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ {{Client function}}<!-- Change this to "Client function" or "Server function" appropriately--> {{Needs_Checking|The argument order might be vice versa}} <!-- Describe in plain e...)
 
No edit summary
Line 30: Line 30:
==See Also==
==See Also==
<!-- Change FunctionArea to the area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc -->
<!-- Change FunctionArea to the area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc -->
{{FunctionArea_functions}}
{{Engine_functions}}
[[Category:Needs_Example]] <!-- leave this until the example is completed. -->
[[Category:Needs_Example]] <!-- leave this until the example is completed. -->

Revision as of 13:03, 26 November 2007

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