playMaker

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Bailie

Pages: [1]
1
Playmaker Help / OnTriggerEnter, set other game object active false
« on: May 05, 2018, 05:52:58 PM »
This is what I want to do:
   void OnTriggerEnter(Collider other) {
      if (other.gameObject.CompareTag ("crap")) {
         other.gameObject.SetActive (false);

I can get ontriggerenter to set the other as a temp gameobject variable. I can clear it so it loops correctly. I can get the if statement part. But the Set Property action doesn't work with variable gameobjects, only gameobjects in your scene.

What can I do?

2
Playmaker Help / New to playmaker, trying to make things spin
« on: May 02, 2018, 05:20:12 PM »
This my code, and I just want to use it in VRC. I'm new to playmaker and I'm not figuring it out very well. All it does is spin things at a medium speed.

public class Rotator : MonoBehaviour {

   void Update () {
      transform.Rotate (new Vector3 (0, 30, 0) * Time.deltaTime);
   }
}

Pages: [1]