04-15-2012, 07:42 PM
Hello, i am just really stuck at some things, they seem to not make sense to me, but surely someone can easily fix it. And so i am asking if there is some thread where you can ask about a certain script that you CAN'T understand at all, instead of people making new threads (like that Theforgot3n1)...
For example:
I just have no idea what is wrong, i have tried stuff for about 2-3 hours now and nothing seems to be it.
For example:
Code:
void OnEnter()
{
AddLocalVarInt("lantern",0);
SetEntityPlayerInteractCallback( "Lantern" (when you pick up the lantern) , "SetVariable", true);
}
void SetVariable(string &in asEntity)
{
SetLocalVarInt("lantern", 1);
}
I just have no idea what is wrong, i have tried stuff for about 2-3 hours now and nothing seems to be it.