Login

russian armor

Lights in worldbuilder

12 Dec 2014, 01:34 AM
#21
avatar of adtbm

Posts: 10

@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
12 Dec 2014, 09:17 AM
#22
avatar of Invictus
Donator 11

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!
13 Dec 2014, 12:20 PM
#23
avatar of adtbm

Posts: 10

Thank you very much
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

unknown 7

Ladders Top 10

  • #
    Steam Alias
    W
    L
    %
    Streak
Data provided by Relic Relic Entertainment

Replay highlight

VS
  • U.S. Forces flag cblanco ★
  • The British Forces flag 보드카 중대
  • Oberkommando West flag VonManteuffel
  • Ostheer flag Heartless Jäger
uploaded by XXxxHeartlessxxXX

Board Info

1042 users are online: 1042 guests
2 posts in the last 24h
10 posts in the last week
28 posts in the last month
Registered members: 50014
Welcome our newest member, flightsyoo
Most online: 2043 users on 29 Oct 2023, 01:04 AM