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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Model Editor Help Attaching lights to entities
Acies Offline
Posting Freak

Posts: 1,643
Threads: 60
Joined: Feb 2011
Reputation: 73
#5
RE: Attaching lights to entities

In response to your edit - yes. So, the light needs to be renamed in the script you provided.

Also, I dug through old scripts to find the correct format - tried to 'translate' into something for you:


void enemylight(string &in EntityName, string &in Type)
{
if(Type == "OnAutoDisabled")
{
FadeLightTo("servant_grunt_1_light_1", 0, 0, 0, 0, 0, 0.1);
}
}

(Keep in mind that the editors like to add an underscore and a number on names!).

The script assumes that you named your pointlight = 'light'

[Image: mZiYnxe.png]


(This post was last modified: 10-24-2013, 06:42 PM by Acies.)
10-24-2013, 06:41 PM
Find


Messages In This Thread
Attaching lights to entities - by HugoLafisques - 10-23-2013, 03:14 PM
RE: Attaching lights to entities - by Acies - 10-23-2013, 09:01 PM
RE: Attaching lights to entities - by Acies - 10-24-2013, 06:41 PM
RE: Attaching lights to entities - by Acies - 10-25-2013, 09:07 PM



Users browsing this thread: 1 Guest(s)