|
I have a script here, to trigger an animation via collider. It DID work very well, i tried it at work in our project. Thing is, i'm doing a personal project. And i tried to use the same script on my character, but it doesn't work. It give me the feedback so the script does something. Only thing is, my characters animation doesn't work. Should i post the script here? Or do guyz need some more information first? * sorry for the mess up!! here is the script*
(comments are locked)
|
|
Try this: Although, given the push animation I'm thinking you want a solid collider with on collision enter instead of trigger so that the player can do his push animation without entering the trigger...
Jul 26 '10 at 12:39 PM
spinaljack
Hey, Sorry for the late reply. I didn't expect an answer anymore. I tried your script but the results are the same. maybe i'm taking the wrong aproach here. But i thought this would be the most simpel. i still get "touch" and "untouch" but nothing happens, also no errors. I could upload the project if you want?
Jul 30 '10 at 04:30 PM
Cyriel
(comments are locked)
|

The more details the better. Assuming that the script is fine I would say your model hasn't been set up correctly or you've missed a step on the script.
Well, i now used a trigger via raycast, and it works. Only problem i got now, is that it triggers as soon as the script starts. But when i turn of the trigger before playing, it doesn't trigger.
Post your scripts
erhm... i'm getting all kinds of weird stuff. The whole thing is script, but i guess the website doesn't see that. you can tell i'm not a coder lol. Sorry for that.