Scripts / g_Entity[e]['plrvisible']

Author
Message
Team wolf
7
Years of Service
User Offline
Joined: 26th Dec 2016
Location:
Posted: 12th Jan 2017 15:53 Edited at: 12th Jan 2017 15:56
How this works i made this script put inever see the Prompt no mater the angle i am at the object



Also is there a way to get a value when the player is looking at an entity for example a box in order to get it you will have look at it to get it
PM
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 12th Jan 2017 16:39
the Prompt command needs to be enclosed in ()

Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++, SQL, PL-SQL, JavaScript, HTML, Darkbasic Pro (still love this language), Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; 12GB.
FPSC to GameGuru Tools: SegAutoWelder, Entity+Weapon Welder
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 12th Jan 2017 18:03
Moving this thread to the script section.

Thank you.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 13th Jan 2017 09:58
Also that will only work for characters, not normal entities as they don't have any sight.

For checking if the player is looking at something https://forum.game-guru.com/thread/207801?page=7#msg2515459
(Only works in y though)
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Mouaa
User Banned
Posted: 13th Jan 2017 13:40
Quote: "
For checking if the player is looking at something https://forum.game-guru.com/thread/207801?page=7#msg2515459"


Nice scripts Smallg . i think i will learn a lot from them.

Is there some general purpose Raycast physic function working on static geometry ? there is lot of usages like TPS cover or climb systems.

smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 13th Jan 2017 18:32
unfortunately no, i would like one too, it's one of the things i have requested before but can't see it being added any time soon.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Mouaa
User Banned
Posted: 13th Jan 2017 21:59
It's already available in Bullet.
http://bulletphysics.org/mediawiki-1.5.8/index.php/Using_RayTest
That's sad, it would be an open door for users experienced with coding like us, but perhaps it doesn't fit with GG philosophy that is not focused on coding indeed.

Login to post a reply

Server time is: 2024-05-21 16:51:32
Your offset time is: 2024-05-21 16:51:32