Greetings everybody.
I spent a great deal of time making a map, and got the blizzard to work by overwriting everything in the SCAR file with the following before exporting the package:
-------------------------------------------------------------------------
-------------------------------------------------------------------------
import("ScarUtil.scar")
import("Systems/BlizzardMulitplayer.scar")
-------------------------------------------------------------------------
-- [[ ONINIT ]]
-------------------------------------------------------------------------
function OnInit()
MP_BlizzardInit("data:art/scenarios/presets/atmosphere/DLC/mp_don_river_01_blizzard.aps" ,"data:art/scenarios/presets/atmosphere/DLC/mp_don_river_01.aps", nil, nil, true, nil)
end
Scar_AddInit(OnInit)
Now I know absolutely nothing about SCAR coding, and everything I found thus far is extremely confusing, not coherent, in bad english, or incomplete. I went and tried to have lights turned on, so I did what one of the posts told me to do, and created entity groups for the lights. Now I have 5 entity groups. I tried adding the following to the SCAR file:
function OnInit()
EGroup_SetAnimatorState(eg_lamps, "Light_State", "On")
end
Scar_AddInit(OnInit)
But I have no idea where to keep repeating this, modify that single line of code to have all 5 entity groups, wheter I have to have "end" 6x in my document, or function OnInit... I'm absolutely clueless and discouraged. Can somebody please clarify what my SCAR file should look like and why?
thanks in advance guys
Scar coding problems
22 Dec 2014, 12:45 PM
#1

Posts: 43
26 Dec 2014, 00:53 AM
#2

Posts: 357
You should have all the lights you want turned on, inside the Entity Group named "eg_lamps".
If you are adding this ontop of your blizzard script, try this.
If you still have problems, let me know.
If you are adding this ontop of your blizzard script, try this.
Code
-------------------------------------------------------------------------
-------------------------------------------------------------------------
import("ScarUtil.scar")
import("Systems/BlizzardMulitplayer.scar")
-------------------------------------------------------------------------
-- [[ ONINIT ]]
-------------------------------------------------------------------------
function OnInit()
EGroup_SetAnimatorState(eg_lamps, "Light_State", "On")
EGroup_SetAnimatorState(eg_lamps, "Light", "On")
MP_BlizzardInit("data:art/scenarios/presets/atmosphere/DLC/mp_don_river_01_blizzard.aps" ,"data:art/scenarios/presets/atmosphere/DLC/mp_don_river_01.aps", nil, nil, true, nil)
end
Scar_AddInit(OnInit)
If you still have problems, let me know.
1 Jan 2015, 14:21 PM
#3

Posts: 43
Worked like a charm, I also seem to have figured some stuff out here and there about the SCAR file. I didn't know you could just add any piece of script on top of the other. But it works now! Thanks!
1 Jan 2015, 19:42 PM
#4

Posts: 357
Just remember, the exact placement of different scripts may make or break the script. The majority of script problems is incorrect placement, or missing command characters.
PAGES (1)

1 user is browsing this thread:
1 guest
SHOUT IT OUT!



Rosbone: you know, you give the mods something to do so they can feel useful and you dont even get a thank you 
Yesterday, 23:06 PM

Yesterday, 23:06 PM
aerafield: @LimaOscarMike I would say nowadays is a decent time to try CoH3. If you loved CoH2 however, there is a solid chance you're gonna dislike CoH3
Last Monday, 17:04 PM
Last Monday, 17:04 PM
LimaOscarMike: My laptop can't even run COH3. Should I get them on my Series X or is it dead yet?
Last Saturday, 05:10 AM
Last Saturday, 05:10 AM
Rosbone: One of my last major gripes about Coh3. Price is still too high I feel for growth. But progress is always good.
Last Saturday, 04:43 AM
Last Saturday, 04:43 AM
Rosbone: I am not 100% sure but I think Relic actually fixed up the skirmish menus a little last patch. If so, thank you and keep it coming.
Last Saturday, 04:39 AM
Last Saturday, 04:39 AM
Osinyagov: Suddenly, coh2 is slowly dying, but you can play it, playerbase still big enough
09 Apr 2025, 17:00 PM
09 Apr 2025, 17:00 PM
SupremeStefan: https://steamcommunity.com/sharedfiles/filedetails/?id=3457737797
04 Apr 2025, 12:42 PM
04 Apr 2025, 12:42 PM
Willy Pete: @Rosbone not dead yet. when that happens the font will switch to Papyrus 
02 Apr 2025, 00:16 AM

02 Apr 2025, 00:16 AM
aerafield: yeah I already prepared my "Can't believe there's comic mode for the 10 daily visitors even on this April 1st" 
01 Apr 2025, 20:29 PM

01 Apr 2025, 20:29 PM
Lady Xenarra: Does anyone else think that USF needs buffs? It feels like they’re on life support sometimes
01 Apr 2025, 02:36 AM
01 Apr 2025, 02:36 AM
Livestreams
![]() |
![]() |
![]() |
38 | ||
![]() |
![]() |
![]() |
23 | ||
![]() |
![]() |
![]() |
21 | ||
![]() |
![]() |
![]() |
19 | ||
![]() |
![]() |
![]() |
17 | ||
![]() |
![]() |
![]() |
250 | ||
![]() |
![]() |
![]() |
158 | ||
![]() |
![]() |
![]() |
64 | ||
![]() |
![]() |
![]() |
27 | ||
![]() |
![]() |
![]() |
14 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.59682.879+10
- 2.43163.872+9
- 3.9231.748+1
- 4.14939.793+8
- 5.289162.641+7
- 6.14348.749-1
- 7.14465.689+12
- 8.18151.780+4
- 9.18678.705+1
- 10.814466.636+2
Replay highlight
VS
-
cblanco ★
-
보드카 중대
-
VonManteuffel
-
Heartless Jäger

Einhoven Country

Honor it
14

Download
1378
Board Info
233 users are online:
1 member and 232 guests
shinasukac
shinasukac
3 posts in the last 24h
10 posts in the last week
37 posts in the last month
10 posts in the last week
37 posts in the last month
Registered members: 53992
Welcome our newest member, Beiriger
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, Beiriger
Most online: 2043 users on 29 Oct 2023, 01:04 AM