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
Livestreams
39 | |||||
196 | |||||
23 | |||||
15 | |||||
2 | |||||
1 | |||||
1 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.831222.789+37
- 2.34957.860+14
- 3.589215.733+4
- 4.1099614.642-1
- 5.280162.633+8
- 6.305114.728+1
- 7.916405.693-2
- 8.271108.715+22
- 9.721440.621+3
- 10.1041674.607-2
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
9
Download
1231
Board Info
628 users are online:
628 guests
1 post in the last 24h
7 posts in the last week
39 posts in the last month
7 posts in the last week
39 posts in the last month
Registered members: 49061
Welcome our newest member, Rihedcfrd
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, Rihedcfrd
Most online: 2043 users on 29 Oct 2023, 01:04 AM