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 / entity scripting

Author
Message
charlie mcdowell
12
Years of Service
User Offline
Joined: 22nd Aug 2012
Location:
Posted: 7th Sep 2012 01:26 Edited at: 7th Sep 2012 01:26
okokok i know this isnt a "request" board but i've been through >
http://www.madladdesigns.co.uk/fpsc/guide/ocfpscguide.pdf
and google
and the forum... so i'm tired of looking

what is the name of the condition that checks if to see if the player is looking at the entity?

thanks =^.^=

charlie
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 7th Sep 2012 01:54
Quote: "what is the name of the condition that checks if to see if the player is looking at the entity?"


Would it be "plrfacing"?

Taken from Ched's Script Syntax PDF.

Quote: "
3.8.1.14 PLRFACING=X
Description: Is true if the player is facing the entity within ± X°. If X is 0, then a default value of 35° is used.
Range: X = 0 to 180°
Example: :plrfacing=45:state=1"



Twitter: @NFoxMedia
charlie mcdowell
12
Years of Service
User Offline
Joined: 22nd Aug 2012
Location:
Posted: 7th Sep 2012 01:55
that or i just found inview= which is a condition to see if the entity is in view of the camera. thanks

charlie
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 7th Sep 2012 02:00
No problem. I use "inview" when I need to check to ensure the entity is "on screen". I use "plrfacing" if the entity is on screen but need to ensure the player is facing the entity.


Twitter: @NFoxMedia
charlie mcdowell
12
Years of Service
User Offline
Joined: 22nd Aug 2012
Location:
Posted: 7th Sep 2012 02:14 Edited at: 7th Sep 2012 03:28
ill give plrfacing a try. its actually my first script so we'll see how it comes out

Edit: for whatever reason, my fpipad doesn't have plrfacing

charlie

Login to post a reply

Server time is: 2024-11-23 22:34:11
Your offset time is: 2024-11-23 22:34:11