note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
GetCustomModelPath
warning
This function was added in omp v1.1.0.2612 and will not work in earlier versions!
Description
Get a custom model path.
Name | Description |
---|---|
modelid | The custom model id to get path from. |
dffPath[] | An array in which to store the dffPath in, passed by reference. |
dffSize | The length of the dffPath that should be stored. |
txdPath[] | An array in which to store the txdPath in, passed by reference. |
txdSize | The length of the txdPath that should be stored. |
Examples
new
modelid = -2000,
dffPath[64],
txdPath[64];
GetCustomModelPath(modelid, dffPath, sizeof(dffPath), txdPath, sizeof(txdPath));
printf("[Custom model id %d path]\n\
dff: %s\n\
txd: %s",
modelid, dffPath, txdPath);
Related Functions
- AddSimpleModel: Adds a new custom simple object model.
- AddSimpleModelTimed: Adds a new custom simple object model.
- IsValidCustomModel: Checks if a custom model ID is valid.