Adding yellow arrows to conquest map [Solved]
Posted: Sat Jun 06, 2015 2:20 pm
the title says it all , how do I add the yellow campaign arrows to my conquest map.
Get more from your games!
http://www.gametoast.com/
Code: Select all
MapAddRegionMarker(region, markerclass, number, number, team, color, boolean, boolean, boolean, boolean);
MapRemoveRegionMarker(region);
MapAddEntityMarker(objectname, markerclass, number, number, team, color, boolean, boolean, boolean, boolean);
MapRemoveEntityMarker(objectname);
MapAddClassMarker(class, markerclass, number, number, team, color, boolean, boolean, boolean, boolean);
MapRemoveClassMarker(class);Code: Select all
Once = OnFinishCapture(
function(post, holding)
if GetCommandPostTeam("cp3") == 1 then
SetProperty("cp3", "CaptureRegion", "xxx")
MapAddEntityMarker("cp3", "hud_objective_icon", 4.0, ATT, "YELLOW", true)
MapAddEntityMarker("arrow", "hud_objective_icon", 4.0, ATT, "YELLOW", true)
end
end
)
Code: Select all
-- REP Attacking (attacker is always #1)
REP = 1
CIS = 2
-- These variables do not change
ATT = 1
DEF = 2Code: Select all
-- REP Attacking (attacker is always #1)
local REP = 1
local CIS = 2
-- These variables do not change
local ATT = 1
local DEF = 2Semi-off-topic: Ugh. Do we know what all those bools do, yet?Noobasaurus wrote:You'll use one or more of these depending on what you want to do with them.Code: Select all
MapAddRegionMarker(region, markerclass, number, number, team, color, boolean, boolean, boolean, boolean); MapRemoveRegionMarker(region); MapAddEntityMarker(objectname, markerclass, number, number, team, color, boolean, boolean, boolean, boolean); MapRemoveEntityMarker(objectname); MapAddClassMarker(class, markerclass, number, number, team, color, boolean, boolean, boolean, boolean); MapRemoveClassMarker(class);