PrimoFernando 7 Share Posted March 2, 2015 (edited) 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 Edited March 2, 2015 by PrimoFernando Link to comment Share on other sites More sharing options...
Pandemic 2469 Share Posted March 2, 2015 Store the game object of the current tree, and check exists() on it Link to comment Share on other sites More sharing options...
Chris 154 Share 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 Link to comment Share on other sites More sharing options...
PrimoFernando 7 Author Share Posted March 2, 2015 (edited) 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. Edited March 2, 2015 by PrimoFernando Link to comment Share on other sites More sharing options...
Vlad 216 Share 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. Link to comment Share on other sites More sharing options...
PrimoFernando 7 Author Share 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(). Link to comment Share on other sites More sharing options...
Recommended Posts