@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
6 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.655231.739+15
- 2.842223.791+5
- 3.940410.696+6
- 4.35459.857-1
- 5.599234.719+7
- 6.278108.720+29
- 7.307114.729+3
- 8.645.928+5
- 9.10629.785+7
- 10.527.881+18
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
11
Download
1265
Board Info
905 users are online:
905 guests
2 posts in the last 24h
10 posts in the last week
28 posts in the last month
10 posts in the last week
28 posts in the last month
Registered members: 50013
Welcome our newest member, toxsltechnologiesSA
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, toxsltechnologiesSA
Most online: 2043 users on 29 Oct 2023, 01:04 AM