07-04-2011, 04:28 PM
Hy i am new in this forum and in Scripting too.
I Have a problem with my scripts, i want a lamp to turn on when collide with a area called lampson.
I think the script is right.
Where is the problem?
I Have a problem with my scripts, i want a lamp to turn on when collide with a area called lampson.
I think the script is right.
Code:
void Lamps(string &in asItem, string &in asEntity)
{
SetLampLit("chandelier_nice_1", false, false);
}
////////////////////////////
// Run On Enter
void OnEnter()
{
AddEntityCollideCallback("Player", "lampson", "Lamps", false, 1);
}
Where is the problem?