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
Work in progress Lights , cant get them to activate (noob)
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: Lights , cant get them to activate (noob)

Assuming this is all your code?

If so, then just put the AddEntityCollideCallback in an OnStart() subroutine.

PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player""ScriptArea_5""Light"true1);
}

void Light(string &in asEntity
{
SetEntityActive("torch_floor_1"true);
SetEntityActive("torch_floor_2"true);
SetEntityActive("torch_floor_3"true);
SetEntityActive("torch_floor_4"true);


Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 04-17-2014, 03:56 PM by Romulator.)
04-17-2014, 03:55 PM
Find


Messages In This Thread
RE: Lights , cant get them to activate (noob) - by Romulator - 04-17-2014, 03:55 PM



Users browsing this thread: 1 Guest(s)