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
DeAngelo Offline
Senior Member

Posts: 263
Threads: 26
Joined: Feb 2013
Reputation: 11
#5
RE: New to this, having some trouble

The door fix worked great. Thank you. I just have to make sure I turn snaptogrid off whenever I'm gonna mess with the door so it doesn't jump back down.

As for the spotlight, I'm an idiot so I can't figure out where to put that "function" in my script. I tried it like this and the game crashed when I tired to load the level.

PHP Code: (Select All)
void OnStart() 
{ 
    
AddEntityCollideCallback("Player", "PlayerCollide_Spotlight", "SpotlightOn", true, 1);     
} 

void  SpotlightOn(string& asLightName, float afR, float afG, float afB, float afA, float afRadius, float afTime);
{ [
b](This is Line 15 in my Notepad++)[/b]
    
FadeLightTo(Spotlight_4, 0.7, 0.7, 0.55, 1, -1, 1); 
} 

Dunno if this helps but the crash said that line 15 was the culprit and that it was an unrecognized token, I made a note up there of where my line 15 is.

I know you probably just looked at that and thought "How could he have got that so wrong? I didn't know dumb like that existed." Sorry about that.

A Late Night Drink http://www.moddb.com/mods/a-late-night-drink
Check out my LP channel, CatBearGaming, I take all Custom Story requests!
02-27-2013, 09:13 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 DeAngelo - 02-27-2013, 09:13 AM
RE: New to this, having some trouble - by NaxEla - 02-27-2013, 09:36 AM
RE: New to this, having some trouble - by NaxEla - 03-02-2013, 10:05 AM



Users browsing this thread: 1 Guest(s)