Scripts / [SOLVED] Any way to detect if the player is in a vegetation area?

Author
Message
LeGugusse
14
Years of Service
User Offline
Joined: 15th Feb 2007
Location: Paris - France
Posted: 24th Aug 2021 12:20
I'm trying to make the player invisible when he walks in a vegetation zone.

I used the Dvader scripts ( https://forum.game-guru.com/thread/220144 ) to make a trigger zone where the player is invisible to the ennemies:



But it only works with the first trigger zone. When you enter the second or third or other triggerzone , the differents scripts and triggerZones enter in conflict beetween themselves.

So I wondered if it was possible to detect when the player is walking into a vegetation area and make it invisible to the ennemies. (hidding in the bush) .
Something like " if IS_IN_VEGETATION then g_hidden=1.

Thanks for your help and ideas.

Cry \"Havoc!\" and let slip the dogs of war

The author of this post has marked a post as an answer.

Go to answer
PM
smallg
Community Leader
15
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 24th Aug 2021 13:39
This post has been marked by the post author as the answer.
this should work ok as long as the zones don't overlap
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
LeGugusse
14
Years of Service
User Offline
Joined: 15th Feb 2007
Location: Paris - France
Posted: 25th Aug 2021 16:21
SmallG, it works fine! Thank you SO MUCH!

I will now be able to use the hidding ability in my games!
Cry \"Havoc!\" and let slip the dogs of war
PM
GOTO HelloWorld!
8
Years of Service
User Offline
Joined: 21st Oct 2013
Location: Skyrim,...and lost in it!
Posted: 26th Aug 2021 18:04
YES, and suddenly, (using another trigger zone just after the one from the grass) you walk on a branch that CRACK! and then all ennemies are alerted! lol

Great script by the way, very useful!!!
When I died, I want to be buried in Cyrodil!
PM

Login to post a reply

Server time is: 2021-11-27 11:30:29
Your offset time is: 2021-11-27 11:30:29