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 Product Chat / Is there a way to make the player invisible with a triggerzone?

Author
Message
Belacios
13
Years of Service
User Offline
Joined: 11th Nov 2012
Location: Otherworld
Posted: 16th Aug 2013 22:39
I want to make a stealth stage on my game. And there will be some shadowed corners in the map where you hide.
I want to put a trigger zone in those points and make the character invisible for the enemies passing by.

I would be very grateful with some help.

Cheers. ^^

http://www.indiedb.com/games/sem-sada-no-way-out
Burger
14
Years of Service
User Offline
Joined: 22nd Jun 2012
Location: New Zealand
Posted: 17th Aug 2013 03:01
Hey Belacios, there was a similar thread here that I gave an answer to. It works by placing invisible dynamic objects near a light source and using plrdistwithin/plrdistfurther to determine if the player is in the light. However, instead of showing a hud (from the other thread) a variable may be best used. Here's the modified script:



And in the character script, you would add a line of code to the detection part. For example:



Or along those lines. Hope this helps

- An Instinctive Fear IndieDB page, download the demo today!

Login to post a reply

Server time is: 2026-07-01 10:11:07
Your offset time is: 2026-07-01 10:11:07