Signature
Objective_Icon(<objective_number>, <icon>)
Parameters
| Name | Required? | Details |
|---|---|---|
| objective_number | Required | The ID of the objective to alter |
| icon | Required | The icon name |
Example (from Treyarch's docs)
objective_icon( crateObjID, "compass_supply_drop_black" )
Real uses in BO3's scripts
Called 15 times in the decompiled scripts. A few, zombies first:
- scripts/shared/gameobjects_shared.gsc, line 3277
objective_icon(objid, self.compassicons[relativeteam]); - scripts/mp/gametypes/_dogtags.gsc, line 68
objective_icon(level.dogtags[victim.entnum].objid[team], "waypoint_dogtags"); - scripts/mp/gametypes/_prop_controls.gsc, line 2710
objective_icon(var_6f71e4e9, "t7_hud_waypoints_safeguard_location"); - scripts/mp/gametypes/bwars.gsc, line 452
objective_icon(self.compass_icons[0], "compass_waypoint_defend" + label); - scripts/mp/gametypes/clean.gsc, line 482
objective_icon(taco.objectiveid, "t7_hud_waypoints_stockpile_dropped");
Related built-ins
- SetBeastModeIconMaterial()Sets the material used by beast mode icons
- Objective_SetIcon()Sets the icon for the objective
- SetCompassIcon()Sets the icon to be shown on the minimap
- SetEntBeastModeIconType()Sets the beast mode icon shown for a particular entity
- Objective_SetIconSize()Sets the objective's scale for the icon.
- SetParagonIconId()Sets the player's paragon icon id
- ArtilleryIconLocation()Set the artillery icon location
- Objective_FlipIcon()Flips the icon of the objective
- SetTeamReviveIcon()Set the revive icon used by particular teams
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).