A community version of interesting/useful functions for T7 CoDScript. It's to expand scripting capabilities for every user, as well as, understand newer features involved with the T7 scripting syntax.
m_array::search( <array>, <value>, [as_index] )
-
Returns: array/int
-
Parameters: array, int, bool
m_array::select_random( <array> )
-
Returns: array
-
Parameters: array
m_array::create_from( <array>, <n_s_index>, [n_e_index], [reversed] )
-
Returns: array
-
Parameter: array, int, int, bool
m_lui::show_text( <text>, [alignment], [x], [y], [color], [alpha], [auto_clear], [height] )
-
Returns: struct
-
Parameters: string, string, int, int, vec, int, bool, int
m_lui::show_text_for_time( <text>, [time], [fadein], [fadeout], [alignment], [x], [y], [color], [alpha], [auto_clear], [height] )
-
Returns: undefined
-
Parameters: string, int, int, , int, string, int, int, vec, int, bool, int
m_lui::show_shader( <shader>, [alignment], [x], [y], [width], [height], [alpha], [auto_clear] )
-
Returns: struct
-
Parameters: string, string, int, int, int, int, int, bool
m_lui::show_shader_for_time( <shader>, [time], [fadein], [fadeout], [alignment], [x], [y], [width], [height], [alpha], [auto_clear] )
-
Returns: undefined
-
Parameters: string, int, int, int, string, int, int, int, int, int, bool
m_player::lock( [stance] )
-
Returns: undefined
-
Parameters: string
-
Call on: player
m_player::release()
-
Returns: undefined
-
Parameters:
-
Call on: player
m_trigger::create_trigger( <type>, <origin>, <radius>, <height>, [spawnflags] )
-
Returns: trigger
-
Parameters: string, vec, int, int, int
m_trigger::exec_trigger_loop( <validation>, <callback> )
-
Returns: undefined
-
Parameters: function pointer, function pointer
m_util::to_string( <convert>, [append_str] )
-
Returns: string
-
Parameters: any, string
m_util::get_team_count( [team] )
-
Returns: int
-
Parameters: string
m_util::get_players_in_team( [team] )
-
Returns: int
-
Parameters: string
m_util::in_between( <lowest>, <greatest>, <comparison> )
-
Returns: bool
-
Parameters: int, int, int
m_zm_perks::get_perk_alias( <str_perk> )
-
Returns: string
-
Parameters: string
m_zm_perks::get_perk_hash_id( <str_perk> )
-
Returns: int
-
Parameters: string
m_zm_perks::get_perk_cost( <str_perk> )
-
Returns: int
-
Parameters: string
m_zm_perks::get_perk_hint_string( <str_perk> )
-
Returns: string
-
Parameters: string
m_zm_perks::get_perk_bottle_weapon( <str_perk> )
-
Returns: weapon
-
Parameters: string
m_zm_perks::include_perk_in_random_rotation( <str_perk> )
-
Returns: undefined
-
Parameters: string
m_zm_perks::remove_perk_from_random_rotation( <str_perk> )
-
Returns: undefined
-
Parameters: string
m_zm_perks::get_weighted_random_perk( <player> )
-
Returns: string
-
Parameters: player