Skip to main content

player_object_set_material

Function player_object_set_material 

Source
pub unsafe fn player_object_set_material(
    player_object: *mut IPlayerObject,
    material_index: u32,
    model: i32,
    texture_library: StringView,
    texture_name: StringView,
    colour: Colour,
)
Expand description

void IBaseObject::setMaterial(uint32_t, int, StringView, StringView, Colour).

ยงSafety

player_object must be a live IPlayerObject.