objectives
Signature
enum CP_VALUE {
CP_edict = 1, // read only
CP_area, // read only
CP_index, // read only
CP_owner,
CP_default_owner,
CP_visible, // reinit after change
CP_icon_neutral, // reinit after change
CP_icon_allies, // reinit after change
CP_icon_axis, // reinit after change
CP_origin_x, // reinit after change
CP_origin_y, // reinit after change
CP_can_touch,
CP_pointvalue,
CP_points_for_cap,
CP_team_points,
CP_model_body_neutral,
CP_model_body_allies,
CP_model_body_axis,
// strings
CP_name,
CP_reset_capsound,
CP_allies_capsound,
CP_axis_capsound,
CP_targetname,
CP_model_neutral,
CP_model_allies,
CP_model_axis
};
Signature
native objectives_get_num();
Description
returns number of objectives
Signature
native objectives_reinit(player = 0);
Description
use this function to update client(s) hud. You need to do this sometimes.
Check CP_VALUE comments. if player is 0, all clients will get this message
Signature
native objective_get_data(index, CP_VALUE:key, szValue[] = "", len = 0);
Description
use this function to get info about specified control point
Signature
native objective_set_data(index, CP_VALUE:key, iValue = -1, const szValue[] = "");
Description
use this function to change control point's data