Hi Everyone. I’m making a Water Interaction script that involves Trigger.Enter and Instantiating Transform objects, At the Moment i don’t wanna show my script due to the embarrassing progress it has right now, But I Need help finding out how to make it that it goes something like if trigger.enter but with a variable, Thanks alot,
Chrifoldus
I Think i explained that badly :L, I Just need to know how to make it happen only if it collides with One specific thing.
Hello? This can’t be so hard for all you pro scripters out there, is this something Unity just can’t do or are you to lazy to just tell me?Sorry but i RELLY Need this…
I Went to sleep at 2 am and woke up at 6 am and still waiting for an answer,
The function “function OnCollisionEnter (collisionInfo : Collision) : void” tells you everything you need to “filter” the object that collided and know the points where it collided so you can instantiate something at that position.
Check the documentation.
At the bottom there’s a grenade example.