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 / raycasting

Author
Message
mnemonic
17
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden
Posted: 20th Jul 2012 03:27
Hi all!

I have a level with a chest that I want the player to be able to search.
In front of the chest I've put a trigger zone with a script that instructs the player on which key to press to search, but the hud displays when the player is within the zone, which means that he can look away from the chest and still be prompted with the message.

I would want the hud only to be displayed when the player is facing the chest and when it's in reach. In programming, this can be done by using raycasting. Can I do the same thing with FPSC scripting?

Best!

www.memblockgames.com

Login to post a reply

Server time is: 2024-11-23 21:24:17
Your offset time is: 2024-11-23 21:24:17