Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Characters and the "Lookatplr" command. Is this script wrong, or am I using an improper command?

Author
Message
Ekipshi
15
Years of Service
User Offline
Joined: 20th May 2009
Location:
Posted: 7th Feb 2013 19:34
So I'm trying to whip-up a simple script to get npc's to turn their head to you when you get close.



I've tried writing this script a couple different ways. I'm sure there's some bit of logic I'm not considering as to why it's not co-operating.

Either that, or in my blundering understanding of FPI, I'm just trying to use a command to do something it's not meant to.

I did some searching around to see if I could find any topics on either this command or if someone else has already done a script like this, but there either aren't, or I'm horrible at using TGC's search function.

Anyone have any insight? Anything at all is appreciated.
Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 7th Feb 2013 21:28
your mistake is that plrcanbeseen is true just when entity look at plr

So try this:


Corno_1


Ekipshi
15
Years of Service
User Offline
Joined: 20th May 2009
Location:
Posted: 8th Feb 2013 04:15
Hmmm..

I appreciate you taking a stab at this. It's still not achieving the desire effect however.

Is the lookatplr command perhaps something completely different than what I'm thinking? I imagined it made them rotate their head to look at the player.

I'm using the latest beta of 1.20. I'm wondering if that could also perhaps be the source of the issue.

Looking at the logic, it seems sound (although so did my version to me, but maybe the plrseen calculations aren't very reliable)

I'll keep poking around. If anyone else turns up anything, let me know!

Login to post a reply

Server time is: 2024-11-23 17:02:47
Your offset time is: 2024-11-23 17:02:47