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
New to this, having some trouble
No Author Offline
Posting Freak

Posts: 962
Threads: 10
Joined: Jun 2012
Reputation: 13
#8
RE: New to this, having some trouble

Is that your full script ?

I think you should add void OnLeave() to make it work.
Try this :
PHP Code: (Select All)
void OnStart() 
{  
AddEntityCollideCallback("Player""PlayerCollide_Spotlight""SpotlightOn"true1);
AddEntityCollideCallback("Player""PlayerCollide_SpotlightOff""SpotlightOff"true1);


void SpotlightOn(string &in asParentstring &in asChildint alState)
{
    
SetLightVisible("Spotlight_4"True); 
}
void SpotlightOff(string &in asParentstring &in asChildint alState)
{
    
SetLightVisible("Spotlight_4"False); 
}

Void OnLeave()
{
///Other scripts


[Image: the-cabin-in-the-woods-masked-people.jpg]
(This post was last modified: 02-27-2013, 11:26 AM by No Author.)
02-27-2013, 11:16 AM
Find


Messages In This Thread
New to this, having some trouble - by DeAngelo - 02-27-2013, 07:23 AM
RE: New to this, having some trouble - by NaxEla - 02-27-2013, 07:40 AM
RE: New to this, having some trouble - by NaxEla - 02-27-2013, 08:51 AM
RE: New to this, having some trouble - by NaxEla - 02-27-2013, 09:36 AM
RE: New to this, having some trouble - by No Author - 02-27-2013, 11:16 AM
RE: New to this, having some trouble - by NaxEla - 03-02-2013, 10:05 AM



Users browsing this thread: 1 Guest(s)