Ok then..
Well i am currently following the tutorial, and now it came around to making my first object.
It said, as i'm using default(sierra style or something), i had no use yet for the pick-up script, as my style didn't really have a 'pick-up' option.
So i had to make an Interaction script.
So i made one, following the tutorial, only the thing now is..
When i try to pick the 'KEY' up, it trows me out of the game and say's 'There's no such function in the script, try the AnyClick script.'
But with the AnyClick script, even the LookAt function picks up the key..
Also, They key is quite hard to click on... Really tiny responsive space, like 1 pixel of the key..
My Script:
function oKey_to_Heaven_Interact()
{
oKey_to_Heaven.Visible = false;
player.AddInventory (iKey);
GiveScore (5);
}
Any Suggestions?
Well i am currently following the tutorial, and now it came around to making my first object.
It said, as i'm using default(sierra style or something), i had no use yet for the pick-up script, as my style didn't really have a 'pick-up' option.
So i had to make an Interaction script.
So i made one, following the tutorial, only the thing now is..
When i try to pick the 'KEY' up, it trows me out of the game and say's 'There's no such function in the script, try the AnyClick script.'
But with the AnyClick script, even the LookAt function picks up the key..
Also, They key is quite hard to click on... Really tiny responsive space, like 1 pixel of the key..
My Script:
function oKey_to_Heaven_Interact()
{
oKey_to_Heaven.Visible = false;
player.AddInventory (iKey);
GiveScore (5);
}
Any Suggestions?