Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is there any way to change lights inside an entity in game?
ExpectedIdentifier Offline
Member

Posts: 234
Threads: 10
Joined: Sep 2012
Reputation: 11
#1
Is there any way to change lights inside an entity in game?

Hi, a year or two back I saw a thread where somebody said it might be possible to change lights inside an entity through scripting - (FadeLightTo etc). Can't find the thread or anything about this on the FG wiki, wondering if anyone knows if it's possible? I'm especially curious if it's possible for HandObjects.

Cheers

Closure ModDB page:

[Image: 16LO8Sx]
11-20-2013, 03:35 PM
Find
Wapez Offline
Senior Member

Posts: 360
Threads: 37
Joined: Mar 2012
Reputation: 19
#2
RE: Is there any way to change lights inside an entity in game?

Is it necessary to change the LIGHT, instead of replacing the entity with a new one that has attached light to it?

Founder & Legally Accountable Publisher of Red Line Games.
Environment & Gameplay Designer and Scripter.
http://moddb.com/mods/in-lucys-eyes
11-20-2013, 04:51 PM
Find
ExpectedIdentifier Offline
Member

Posts: 234
Threads: 10
Joined: Sep 2012
Reputation: 11
#3
RE: Is there any way to change lights inside an entity in game?

(11-20-2013, 04:51 PM)Wapez Wrote: Is it necessary to change the LIGHT, instead of replacing the entity with a new one that has attached light to it?

You can only have one "lantern" per mod so yes it's necessary Tongue

Closure ModDB page:

[Image: 16LO8Sx]
11-20-2013, 04:57 PM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#4
RE: Is there any way to change lights inside an entity in game?

I think you ment, { we talked about this private }
BILLBOARDS.
I have a billboards attached to an entitie, but when the entitie gets UNACTIVE or is unactive at all, you will see the billboard...
That is... LOL! very stupid!
Maybe someone has an idea to fix this.
-
SO Entitie + Billboards attactched, when in game you will see the billboard even if the entitie is NOT active.
Thanks guys!
11-20-2013, 08:17 PM
Find
ExpectedIdentifier Offline
Member

Posts: 234
Threads: 10
Joined: Sep 2012
Reputation: 11
#5
RE: Is there any way to change lights inside an entity in game?

(11-20-2013, 08:17 PM)DnALANGE Wrote: I think you ment, { we talked about this private }
BILLBOARDS.
I have a billboards attached to an entitie, but when the entitie gets UNACTIVE or is unactive at all, you will see the billboard...
That is... LOL! very stupid!
Maybe someone has an idea to fix this.
-
SO Entitie + Billboards attactched, when in game you will see the billboard even if the entitie is NOT active.
Thanks guys!

Nope, I meant lights Big Grin however you can connect billboards to lights so by changing the light you'd change the billboard too if there is a way of doing this (and you'd be able to fix your problem with this too).

Closure ModDB page:

[Image: 16LO8Sx]
11-20-2013, 08:25 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#6
RE: Is there any way to change lights inside an entity in game?

No, I don't think it's possible Smile
You cannot use a script to go inside an entity and edit something in there.

Picture this:
The light in the entity is probably called "PointLight_1".
You probably also have a pointlight in your map called "PointLight_1".

You probably also already know that you cannot have to entities with the same name. Therefore it would be impossible.

VVV LOOK HERE VVV

Though, now when i think about it. When you AddPropForce to the doors of a cabinet you write the names like: "cabinet_doorLeft", because that's the name of the cabinet_+the name of the door in the cabinet.

What if you used fadelightto and then called the light this:
(In this example the entity is called "entity")
"entity_PointLight_1"

Try it. Maybe it works.

Trying is the first step to success.
(This post was last modified: 11-20-2013, 09:05 PM by FlawlessHappiness.)
11-20-2013, 09:04 PM
Find
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#7
RE: Is there any way to change lights inside an entity in game?

You can modify stuff inside entities by doing <entityName>_<thing> - E.g. if you attached a light to a barrel, you could reference it as: barrel01_1_light_1
11-20-2013, 10:05 PM
Find
ExpectedIdentifier Offline
Member

Posts: 234
Threads: 10
Joined: Sep 2012
Reputation: 11
#8
RE: Is there any way to change lights inside an entity in game?

(11-20-2013, 10:05 PM)Apjjm Wrote: You can modify stuff inside entities by doing <entityName>_<thing> - E.g. if you attached a light to a barrel, you could reference it as: barrel01_1_light_1

Yess. That was it! Thank you very much.

Forgot to ask, does this work for HandObjects? Last time I tried I don't think I could get it to work.

Closure ModDB page:

[Image: 16LO8Sx]
(This post was last modified: 11-20-2013, 11:17 PM by ExpectedIdentifier.)
11-20-2013, 10:36 PM
Find
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#9
RE: Is there any way to change lights inside an entity in game?

(11-20-2013, 10:36 PM)sonataarctica Wrote: Forgot to ask, does this work for HandObjects? Last time I tried I don't think I could get it to work.
You can, the entity name is player_hands (iirc - might want to check this using inspection mode and some quick turning!) and it should work in the same way. I originally did the overlay for my katamari mod by having a bunch lights i enabled/disabled (which were attached to billboards for the overlay) inside either the hands or lantern entity (it should work with both but i forget which i chose in the end).
(This post was last modified: 11-21-2013, 04:44 AM by Apjjm.)
11-21-2013, 04:43 AM
Find




Users browsing this thread: 1 Guest(s)