PrimoFernando 7 Posted March 2, 2015 Hey, what is the best method to use on a wc script? I use the method isStandingStill(), but i want a method that detects when the tree that is being cut disappears. thanks
Pandemic 2846 Posted March 2, 2015 Store the game object of the current tree, and check exists() on it
Chris 154 Posted March 2, 2015 I personally use a method which detects a period of non-animation along with a check to see if the tree object exists
PrimoFernando 7 Author Posted March 2, 2015 Store the game object of the current tree, and check exists() on it I use this to get the tree GameObject willowTree = getGameObjects().closest("Willow"); but how can i store it? I can't figure it out.
Vlad 216 Posted March 2, 2015 I use this to get the tree GameObject willowTree = getGameObjects().closest("Willow"); but how can i store it? I can't figure it out. That does store it in the variable willowTree.
PrimoFernando 7 Author Posted March 2, 2015 That does store it in the variable willowTree. ahahahah you're right but when i check if exists() it keeps clicking the tree and i can't see a way to stop this without using isStandingStill().
Recommended Posts
Archived
This topic is now archived and is closed to further replies.