anyonr know the right scar code for off map Artillery???
scar code help for Artillery?
2 Dec 2014, 23:42 PM
#1
Posts: 28
5 Dec 2014, 16:58 PM
#2
25 Mar 2015, 03:48 AM
#3
Posts: 28
didnt work for me
25 Mar 2015, 03:49 AM
#4
Posts: 28
function OnInit()
t_players = {}
--Time in seconds to first
g_offmap_interval_first_min = 60
g_offmap_interval_first_max = 120
--Time in seconds to the following strikes after first
g_offmap_interval_min = 120
g_offmap_interval_max = 240
--Give each race a ability.
g_aef_ability = ABILITY.GERMAN.STUKA_AERIAL_SUPERIORITY_RECON
g_west_german_ability = ABILITY.GERMAN.STUKA_AERIAL_SUPERIORITY_RECON
g_german_ability = ABILITY.GERMAN.STUKA_AERIAL_SUPERIORITY_RECON
g_soviet_ability = ABILITY.GERMAN.STUKA_AERIAL_SUPERIORITY_RECON
for i=1,World_GetPlayerCount() do
local player = World_GetPlayerAt(i)
table.insert (t_players, player)
if Player_GetRaceName(player) == "german" then
Player_AddAbility(t_players, g_german_ability)
elseif Player_GetRaceName(player) == "west_german" then
Player_AddAbility(t_players, g_west_german_ability)
elseif Player_GetRaceName(player) == "soviet" then
Player_AddAbility(t_players, g_soviet_ability)
elseif Player_GetRaceName(player) == "aef" then
Player_AddAbility(t_players, g_aef_ability)
end
end
Rule_AddInterval(RES_Cast, World_GetRand(g_offmap_interval_first_min, g_offmap_interval_first_max))
end
--Cast offmap-----------------------------------
function RES_Cast ()
--Exampel markers, replace them whit YOUR MARKERS!!!
local markers_Cast =
{
mkr_310,
mkr_311,
mkr_312,
mkr_313,
mkr_314,
}
local target_R = Table_GetRandomItem(markers_Cast)
local target_Player = t_players[World_GetRand(1, World_GetPlayerCount())]
if Player_GetRaceName(target_Player) == "german" then
Cmd_Ability(target_Player, g_german_ability,target_R, nil, true)
elseif Player_GetRaceName(target_Player) == "west_german" then
Cmd_Ability(target_Player, g_west_german_ability,target_R, nil, true)
elseif Player_GetRaceName(target_Player) == "soviet" then
Cmd_Ability(target_Player, g_soviet_ability,target_R, nil, true)
elseif Player_GetRaceName(target_Player) == "aef" then
Cmd_Ability(target_Player, g_aef_ability,target_R, nil, true)
end
Rule_ChangeInterval(RES_Cast, World_GetRand(g_offmap_interval_min, g_offmap_interval_max))
end
Scar_AddInit(OnInit)
t_players = {}
--Time in seconds to first
g_offmap_interval_first_min = 60
g_offmap_interval_first_max = 120
--Time in seconds to the following strikes after first
g_offmap_interval_min = 120
g_offmap_interval_max = 240
--Give each race a ability.
g_aef_ability = ABILITY.GERMAN.STUKA_AERIAL_SUPERIORITY_RECON
g_west_german_ability = ABILITY.GERMAN.STUKA_AERIAL_SUPERIORITY_RECON
g_german_ability = ABILITY.GERMAN.STUKA_AERIAL_SUPERIORITY_RECON
g_soviet_ability = ABILITY.GERMAN.STUKA_AERIAL_SUPERIORITY_RECON
for i=1,World_GetPlayerCount() do
local player = World_GetPlayerAt(i)
table.insert (t_players, player)
if Player_GetRaceName(player) == "german" then
Player_AddAbility(t_players, g_german_ability)
elseif Player_GetRaceName(player) == "west_german" then
Player_AddAbility(t_players, g_west_german_ability)
elseif Player_GetRaceName(player) == "soviet" then
Player_AddAbility(t_players, g_soviet_ability)
elseif Player_GetRaceName(player) == "aef" then
Player_AddAbility(t_players, g_aef_ability)
end
end
Rule_AddInterval(RES_Cast, World_GetRand(g_offmap_interval_first_min, g_offmap_interval_first_max))
end
--Cast offmap-----------------------------------
function RES_Cast ()
--Exampel markers, replace them whit YOUR MARKERS!!!
local markers_Cast =
{
mkr_310,
mkr_311,
mkr_312,
mkr_313,
mkr_314,
}
local target_R = Table_GetRandomItem(markers_Cast)
local target_Player = t_players[World_GetRand(1, World_GetPlayerCount())]
if Player_GetRaceName(target_Player) == "german" then
Cmd_Ability(target_Player, g_german_ability,target_R, nil, true)
elseif Player_GetRaceName(target_Player) == "west_german" then
Cmd_Ability(target_Player, g_west_german_ability,target_R, nil, true)
elseif Player_GetRaceName(target_Player) == "soviet" then
Cmd_Ability(target_Player, g_soviet_ability,target_R, nil, true)
elseif Player_GetRaceName(target_Player) == "aef" then
Cmd_Ability(target_Player, g_aef_ability,target_R, nil, true)
end
Rule_ChangeInterval(RES_Cast, World_GetRand(g_offmap_interval_min, g_offmap_interval_max))
end
Scar_AddInit(OnInit)
PAGES (1)
1 user is browsing this thread:
1 guest
Livestreams
203 | |||||
16 | |||||
7 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.831222.789+37
- 2.611220.735+5
- 3.35057.860+15
- 4.1110614.644+11
- 5.276108.719+27
- 6.306114.729+2
- 7.918405.694+2
- 8.262137.657+3
- 9.722440.621+4
- 10.1041674.607-2
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
9
Download
1236
Board Info
820 users are online:
820 guests
0 post in the last 24h
6 posts in the last week
34 posts in the last month
6 posts in the last week
34 posts in the last month
Registered members: 49125
Welcome our newest member, Xclusive
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, Xclusive
Most online: 2043 users on 29 Oct 2023, 01:04 AM