player.assisted_kill_of
This function checks whether the context player assisted in killing the argument player. Note that players don't count as "assisting" themselves.
Arguments
- victim
A player that is or was present in the current match.
Example
alias opt_kill_points = script_option[0] alias opt_assist_points = script_option[1] for each player do if current_player.killer_type_is(kill) then alias killer = global.player[0] alias victim = global.player[1] -- victim = current_player killer = current_player.get_killer() killer.score += opt_kill_points -- for each player do if current_player != victim and current_player.assisted_kill_of(victim) then current_player.score += opt_assist_points end end end end