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.

Newcomers DBPro Corner / Sensing click on 3d object.

Author
Message
Inverted
18
Years of Service
User Offline
Joined: 19th Nov 2006
Location: Oregon
Posted: 3rd May 2007 03:47
Okay,
so im making an RPG and i want npc's
I want it so when you click the NPC a window comes up that displays items that they sell.

How do i make it so that when i click on the guy then the window comes up. Because i cant think of a way to sense if the mouse clicks on a 3d object.

Thanks,
-Inv


Lawl
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 3rd May 2007 05:18
Look for Pick Object in the help files.

TDK_Man

Inverted
18
Years of Service
User Offline
Joined: 19th Nov 2006
Location: Oregon
Posted: 3rd May 2007 08:24
Thanks TDK,
I dont fully understand the command though.
Think you could make a small example of clicking an object and having an event happen? thank you


Lawl
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 3rd May 2007 08:45
Here you go...



TDK_Man

Login to post a reply

Server time is: 2024-11-25 19:24:53
Your offset time is: 2024-11-25 19:24:53