You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
Triggers
(4)Atmosphère empoisonnée.w3x
Variables
Initialization
Melee Initialization
CameraZoom
Enter map-specific custom script code below. This text will be included in the map script after variables are declared and before any trigger code except Custom Script Item. Custom Script Item will merge into map script after globals variables declaration with the list order in trigger view.
Name
Type
is_array
initial_value
Default melee game initialization for all players
Melee Initialization
Events
Map initialization
Conditions
Actions
Melee Game - Use melee time of day (for all players)
Melee Game - Limit Heroes to 1 per Hero-type (for all players)
Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
Melee Game - Set starting resources (for all players)
Melee Game - Remove creeps and critters from used start locations (for all players)
Melee Game - Create starting units (for all players)
Melee Game - Run melee AI scripts (for computer players)
Melee Game - Enforce victory/defeat conditions (for all players)
function gg_trg_CameraZoom_Conditions takes nothing returns boolean
local real r
local string s
if GetLocalPlayer() == GetTriggerPlayer() then
set s = SubString(GetEventPlayerChatString(), 6, StringLength(GetEventPlayerChatString()))
set r = S2R(s)
if s == "default" then
set r = 1650
endif
if s == "med" then
set r = 2075
endif
if s == "high" then
set r = 2500
endif
call SetCameraField(CAMERA_FIELD_TARGET_DISTANCE, r, 0.00)
call SetCameraField(CAMERA_FIELD_FARZ, 100000000.00, 0)
endif
return false
endfunction
//===========================================================================
function InitTrig_CameraZoom takes nothing returns nothing
local trigger trig = CreateTrigger()
local integer i = 0
loop
exitwhen i == bj_MAX_PLAYERS
call TriggerRegisterPlayerChatEvent(trig, Player(i), "-zoom ", false)
set i = i + 1
endloop
call TriggerAddCondition(trig, Condition(function gg_trg_CameraZoom_Conditions))
//call SetTerrainFogExBJ( 0, 10000000.00, 1000000.00, 0.5, 100, 100, 100 )
endfunction
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.