Skip to main content

ss_player_find_part_index

Function ss_player_find_part_index 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ss_player_find_part_index( handle: *mut SsPlayer, name: *const c_char, ) -> i32
Expand description

Resolve a part name to its index in the current animation, or -1 when the name is unknown, name is not valid UTF-8, or no animation is set up.

Unlike the calls below this returns an index rather than a status, so it does not touch ss_last_error.

ยงSafety

handle must be a live handle or null; name must be a valid null-terminated C string.