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
custom entities/help with bugs
darkgirl134 Offline
Junior Member

Posts: 2
Threads: 1
Joined: Jun 2012
Reputation: 0
#1
custom entities/help with bugs

hi there!
im new in this kind of stuff, so i have some really basic questions. i recently got an idea to do my own custom story, but unfortunately i had some trouble with the lights.. how can i turn off a light when walking to some area or colliding with something and likewise (i mean turning some on) ? i tried everything i could think of..
also i'd like to put there some custom writings on the wall or pictures maybe, but i didn't find how to do it either. i know it may sound really stupid and it's probably really easy but i just began with it so please help..
thanx! Smile
(This post was last modified: 06-03-2012, 12:53 AM by darkgirl134.)
06-03-2012, 12:50 AM
Find
FragdaddyXXL Offline
Member

Posts: 136
Threads: 20
Joined: Apr 2012
Reputation: 7
#2
RE: custom entities/help with bugs

void SetLightVisible(string& asLightName, bool abVisible);
Use that to turn light objects (not lamp entities like torches and candles).



void SetLampLit(string& asName, bool abLit, bool abEffects);
Use that for lamp entities.

Someone will be better at explaining custom pictures than I.

Dark Seclusion Here
06-03-2012, 01:06 AM
Find
darkgirl134 Offline
Junior Member

Posts: 2
Threads: 1
Joined: Jun 2012
Reputation: 0
#3
RE: custom entities/help with bugs

yeah, i've tried that allright but it didnt work :/ i've checked the names in lvleditor twice and they are the same as in hps file..can it has something to do with setting the light active in the editor? i've unticked the 'active' box but the light was still there!..
06-03-2012, 01:10 AM
Find
Strembitsky Offline
Senior Member

Posts: 254
Threads: 37
Joined: Feb 2012
Reputation: 3
#4
RE: custom entities/help with bugs

If you are using pointlights or boxlights or spotlights, you must use the function SetLightVisible.

The Nightmares v1.0 - Dreadful Fires WIP
06-03-2012, 02:04 AM
Find




Users browsing this thread: 2 Guest(s)