Login

russian armor

Turn on Street Lights

3 Mar 2016, 11:52 AM
#21
avatar of CasTroy

Posts: 559

Im getting fatal scar error after copying the code into the scar file, anyone know what im doing wrong?

Invictus´script does not work, I don´t know why and causes bug-splats.

Try this:
Place your light objects and create an entity group as this Worldbuilder Tip by Mono shows you.

Open your map-scar-file (i. e.: XXXXX_ID) and add these lines to the scar code:


Example scar-files from my map Night at Benouville:

Vanilla scar-file without any lights or other stuff like blizzards and Co.:


Scar-file with created entity group for lights named eg_lamps and code added:
20 Aug 2020, 11:09 AM
#22
avatar of Von_Smedman

Posts: 108


So question , How do I tune on the house light on house Brink01_3x2_loadock01 and ardenes_plaster01_2x3_end and the object called Lamp_simple_03?

[url=

[url=


se map here : 4p_across_the_volturno_river

First i created a entity group list callen eg_lamps, here I add all the lamps that I want to have light in.

[url=

Then I follow the steps :

Created a entity groups and object in to it.

Save map

Add scare code to the mapname_ID.scar

The code I add is this
------------------------------------------------------------------------------------------------
function OnInitID()

-- [[ Markers ]]

-- [[ Squad Groups ]]

-- [[ Entity Groups ]]
eg_lamps = EGroup_CreateIfNotFound("eg_lamps")

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)

end
-------------------------------------------------------------------------------------------------


I then export the map to Coh2, I then update the map in the management inside the game.

I launch the game and this is what I see!

[url=

[url=

As you can see the on the picture the lamp_simple_03 has light in it, but that is because I have adde a action marker.

[url=

Alternative I can created a action marker, se picture above and add the following path in action marker : FX_Attach > FX_special > lamp_looping_lights_00, but when the lamp is destroyer it will still light up...which would look weird.

[url=

So question is, is the action marker the only way to put light on lamp_simple_03 and houses Brink01_3x2_loadock01 and ardenes_plaster01_2x3_end.

Cheers
20 Aug 2020, 11:51 AM
#23
avatar of Von_Smedman

Posts: 108


So question , How do I tune on the house light on house Brink01_3x2_loadock01 and ardenes_plaster01_2x3_end and the object called Lamp_simple_03?

[url=

[url=


se map here : 4p_across_the_volturno_river

First i created a entity group list callen eg_lamps, here I add all the lamps that I want to have light in.

[url=

Then I follow the steps :

Created a entity groups and object in to it.

Save map

Add scare code to the mapname_ID.scar

The code I add is this
------------------------------------------------------------------------------------------------
function OnInitID()

-- [[ Markers ]]

-- [[ Squad Groups ]]

-- [[ Entity Groups ]]
eg_lamps = EGroup_CreateIfNotFound("eg_lamps")

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)

end
-------------------------------------------------------------------------------------------------


I then export the map to Coh2, I then update the map in the management inside the game.

I launch the game and this is what I see!

[url=

[url=

As you can see the on the picture the lamp_simple_03 has light in it, but that is because I have adde a action marker.

[url=

Alternative I can created a action marker, se picture above and add the following path in action marker : FX_Attach > FX_special > lamp_looping_lights_00, but when the lamp is destroyer it will still light up...which would look weird.

[url=

So question is, is the action marker the only way to put light on lamp_simple_03 and houses Brink01_3x2_loadock01 and ardenes_plaster01_2x3_end.

Cheers
20 Aug 2020, 11:57 AM
#24
avatar of Von_Smedman

Posts: 108

See the lamp_simple_03 in action with action marker lamp_looping_light_00, when the building is destoyed the lamp_simple_03 is not destoyed and the light is still on.

Before destruction

[url=

After destruction

[url=
20 Sep 2020, 17:13 PM
#25
avatar of Invictus
Donator 11

Posts: 138

Hi Von_Smedman,

I think indeed there were lamps you simply could not turn on via scar coding.
The only way is with a action marker, but it will indeed not stop when the lamp itself gets destroyed.
20 Oct 2020, 13:05 PM
#26
avatar of Von_Smedman

Posts: 108

Hi Von_Smedman,

I think indeed there were lamps you simply could not turn on via scar coding.
The only way is with a action marker, but it will indeed not stop when the lamp itself gets destroyed.


Ok, thank you, then I know.
1 user is browsing this thread: 1 guest

SHOUT IT OUT!

No ProfanityNumber of ShoutsRefresh Shout Box
aerafield: @LimaOscarMike I would say nowadays is a decent time to try CoH3. If you loved CoH2 however, there is a solid chance you're gonna dislike CoH3
Yesterday, 17:04 PM
LimaOscarMike: My laptop can't even run COH3. Should I get them on my Series X or is it dead yet?
Last Saturday, 05:10 AM
Rosbone: One of my last major gripes about Coh3. Price is still too high I feel for growth. But progress is always good.
Last Saturday, 04:43 AM
Rosbone: I am not 100% sure but I think Relic actually fixed up the skirmish menus a little last patch. If so, thank you and keep it coming.
Last Saturday, 04:39 AM
Osinyagov: Suddenly, coh2 is slowly dying, but you can play it, playerbase still big enough
09 Apr 2025, 17:00 PM
Osinyagov: Wow, i remember you from zansi and vali videos, good old memories
09 Apr 2025, 16:58 PM
Beinhard: o7 miss this game and zansi
09 Apr 2025, 14:09 PM
Lady Xenarra: @Willy Pete The lack of April Fools this year is odd lol
02 Apr 2025, 01:34 AM
Willy Pete: @Rosbone not dead yet. when that happens the font will switch to Papyrus :*(
02 Apr 2025, 00:16 AM
dasheepeh: it was an honor guys :guyokay:
01 Apr 2025, 20:34 PM
aerafield: yeah I already prepared my "Can't believe there's comic mode for the 10 daily visitors even on this April 1st" :guyokay:
01 Apr 2025, 20:29 PM
Rosbone: @dasheepeh I guess that means this site is officially dead :guyokay:
01 Apr 2025, 20:19 PM
dasheepeh: no comic sans font for april 1st this year?
01 Apr 2025, 19:56 PM
Willy Pete: @Lady Xenarra this you? https://i.imgflip.com/3e4thi.jpg
01 Apr 2025, 02:53 AM
Lady Xenarra: Does anyone else think that USF needs buffs? It feels like they’re on life support sometimes
01 Apr 2025, 02:36 AM
Willy Pete: @Rosbone Ahh I missed that memo. I still think its a bad decision though. Adds frustration for players and isnt gonna make them that much money
27 Mar 2025, 15:46 PM
Rosbone: It is also good they left it free until after the free to play weekend. Points for that.
27 Mar 2025, 09:34 AM
Rosbone: But I agree, the cost to get a full decent Coh game pushing $115 US is not the best idea. Especially when it needs so much more work for casuals.
27 Mar 2025, 09:32 AM

Livestreams

unknown 26
Russian Federation 85

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

423 users are online: 423 guests
0 post in the last 24h
6 posts in the last week
37 posts in the last month
Registered members: 53877
Welcome our newest member, Splding67
Most online: 2043 users on 29 Oct 2023, 01:04 AM