@WikStealth: i have checked youre map. could you tell us, how you did it ?
@Invictus: i have tried the Tut at the link too. Still don't get my Lampposts light on ingame. in WB it looks OK (ON) but ingame...Nada
Lights in worldbuilder
12 Dec 2014, 01:34 AM
#21
Posts: 10
12 Dec 2014, 09:17 AM
#22
1
Posts: 138
This is the excact text I have in my .scar document:
function OnInit()
EGroup_SetAnimatorState(eg_lamps, "Light_State", "On")
EGroup_SetAnimatorState(eg_lamps, "Light", "On")
EGroup_SetAnimatorState(sg_lamps, "Light_State", "On")
EGroup_SetAnimatorState(sg_lamps, "Light", "On")
--call custom functions here.
end
--add custom functions here.
Scar_AddInit(OnInit)
Here I have made a group for eg_lamps and sg_lamps, hope this helps!
function OnInit()
EGroup_SetAnimatorState(eg_lamps, "Light_State", "On")
EGroup_SetAnimatorState(eg_lamps, "Light", "On")
EGroup_SetAnimatorState(sg_lamps, "Light_State", "On")
EGroup_SetAnimatorState(sg_lamps, "Light", "On")
--call custom functions here.
end
--add custom functions here.
Scar_AddInit(OnInit)
Here I have made a group for eg_lamps and sg_lamps, hope this helps!
13 Dec 2014, 12:20 PM
#23
Posts: 10
Thank you very much
This part solved the problem !!!
So to summarize the whole "Lamps on" - Story , in WB you should do the following:
Inside Worldbuilder, place the lamps you want to have switched on.
now select the lamps and create a new "Entity group" in the submenu GROUPS.
give the new Group a describing name - in our example -eg_lamps-
save your map.
open Notepad or Notepad++ and put the above script into it. ensure that the
EGroup_SetAnimatorState(eg_lamps, "Light_State", "On")
EGroup_SetAnimatorState(eg_lamps, "Light", "On")
bold name is exactly the same as the name you gave the Entity Group in Worldbuilder (our example -eg_lamps-
save the file as: YourMapName.SCAR and put it in the folder where your .SGB is saved.
Now the lamps will be lit !!!
This part solved the problem !!!
Code
function OnInit()
EGroup_SetAnimatorState(eg_lamps, "Light_State", "On")
EGroup_SetAnimatorState(eg_lamps, "Light", "On")
--call custom functions here.
end
--add custom functions here.
Scar_AddInit(OnInit)
So to summarize the whole "Lamps on" - Story , in WB you should do the following:
Inside Worldbuilder, place the lamps you want to have switched on.
now select the lamps and create a new "Entity group" in the submenu GROUPS.
give the new Group a describing name - in our example -eg_lamps-
save your map.
open Notepad or Notepad++ and put the above script into it. ensure that the
EGroup_SetAnimatorState(eg_lamps, "Light_State", "On")
EGroup_SetAnimatorState(eg_lamps, "Light", "On")
bold name is exactly the same as the name you gave the Entity Group in Worldbuilder (our example -eg_lamps-
save the file as: YourMapName.SCAR and put it in the folder where your .SGB is saved.
Now the lamps will be lit !!!
1 user is browsing this thread:
1 guest
Livestreams
Offline
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.831222.789+37
- 2.615222.735-2
- 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
812 users are online:
812 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: 49134
Welcome our newest member, ko66compro
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, ko66compro
Most online: 2043 users on 29 Oct 2023, 01:04 AM