It seems each time I do a new thing when it comes to scripting I have at least one problem. I'm a little new but I understand it. But I don't understand why my player won't look at the entity which is a bed!
You know the 1 in the addentitycollidecallbacks stands for 'only when entering area' that might mess it up if it's a large area and you're already inside it.
(05-04-2013, 01:13 PM)Smoke Wrote: You know the 1 in the addentitycollidecallbacks stands for 'only when entering area' that might mess it up if it's a large area and you're already inside it.
No, sadly not. It's at the other side of a door so that once you open the door and walk through you look at the bed.
(05-04-2013, 01:11 PM)JustAnotherPlayer Wrote: Make sure the name matches.
Names match, I copied them over.
(This post was last modified: 05-04-2013, 01:15 PM by FurtherGames.)
(05-04-2013, 01:16 PM)Smoke Wrote: It might be a weird glitch. Try to add a script_area and place it in the bed. Try to make him look at that.
I'm unsure whether or not I should deactivate the player. I was watching this tutorial, the guy puts the "StartPlayerLookAt" right into OnStart, etc.
It doesn't hurt if the player is active or not. And if you place the StartPlayerLookAt into OnStart, the player'll just look at it right when he enters the map.
(05-04-2013, 01:19 PM)Matt.btwi Wrote:
(05-04-2013, 01:16 PM)Smoke Wrote: It might be a weird glitch. Try to add a script_area and place it in the bed. Try to make him look at that.
I'm unsure whether or not I should deactivate the player. I was watching this tutorial, the guy puts the "StartPlayerLookAt" right into OnStart, etc.
(05-04-2013, 01:16 PM)Smoke Wrote: It might be a weird glitch. Try to add a script_area and place it in the bed. Try to make him look at that.
The player will look at the script but not the bed, so it's fixed now, but it was a little weird.
True, I'm not sure what caused it..
(This post was last modified: 05-04-2013, 01:22 PM by OriginalUsername.)