playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
Communication between 2 objects.
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Communication between 2 objects. (Read 2474 times)
Noah492
Playmaker Newbie
Posts: 6
Communication between 2 objects.
«
on:
July 07, 2015, 04:50:13 PM »
I want to make it so when I look at a ball for a few seconds, a cube is destroyed. How do I destroy the cube. When the ball has been looked at. I have the ball look already.
Logged
terri
Sr. Member
Posts: 386
Re: Communication between 2 objects.
«
Reply #1 on:
July 07, 2015, 05:05:09 PM »
You mean what action? Destroy Object
Logged
sebaslive
Hero Member
Posts: 572
Re: Communication between 2 objects.
«
Reply #2 on:
July 07, 2015, 05:19:47 PM »
What are you using for the ball look? If its a Raycast then you can grab the cube and tell it to destroy object.
Logged
All my VR games use Steam VR Playmaker Toolkit:
http://u3d.as/u20
And Oculus Touch Playmaker Toolkit:
http://u3d.as/QT5
Follow me @sebasRez
Noah492
Playmaker Newbie
Posts: 6
Re: Communication between 2 objects.
«
Reply #3 on:
July 07, 2015, 06:57:25 PM »
I am using MOUSE OVER to look at the ball and WAIT is used. When you look at the ball for 3 seconds I want to destroy a different gameobject.
Logged
djaydino
Administrator
Hero Member
Posts: 7616
Re: Communication between 2 objects.
«
Reply #4 on:
July 08, 2015, 05:11:38 AM »
Hi,
you can use the "destroy object" action and point it to that object .
if the object to destroy is a prefab you can use "find gameobject" and find it with tag.
Save it in a variable and use that variable in "destroy object"
Logged
Join the PlayMaker Discord Channel!
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
Communication between 2 objects.