@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
32 | |||||
13 | |||||
189 | |||||
5 | |||||
4 | |||||
2 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.831222.789+37
- 2.34957.860+14
- 3.589215.733+4
- 4.1100614.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
893 users are online:
893 guests
2 posts in the last 24h
8 posts in the last week
40 posts in the last month
8 posts in the last week
40 posts in the last month
Registered members: 49070
Welcome our newest member, Blesofsk
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, Blesofsk
Most online: 2043 users on 29 Oct 2023, 01:04 AM