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
10 | |||||
166 | |||||
12 | |||||
4 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.831222.789+37
- 2.615221.736-1
- 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
982 users are online:
982 guests
0 post in the last 24h
5 posts in the last week
33 posts in the last month
5 posts in the last week
33 posts in the last month
Registered members: 49127
Welcome our newest member, Constant
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, Constant
Most online: 2043 users on 29 Oct 2023, 01:04 AM