void bindp2_d4(int flags, int modelVariation, int modelColorVariation); //id:0x00d4
Assigns a model to a character (current script).
If the reference type is 0, it's the identifier of the model that will be assigned.
If the reference type is higher than 0, it's the identifier of the model entry in section 12 of the ebp file.
If set to anything higher than 0, section 12 of the ebp file will be checked.
If set to 0, the model identifier will be directly used unless it matches with an identifier from the table below in which case it will be converted.
The variation of the model.
The color variation of the model.
If the reference type is set to 0, the following conditions apply:
If the ebp file has no section 12, the returned model identifier will be the same as the original one.
If the model identifier is higher than the amount of entries in section 12 of the ebp file, the returned identifier will be 0.