|
Post by darkdorian on Jun 30, 2015 19:08:00 GMT
I would like to create a bow game and I am wondering how to plant an arrow in a target. The target is supposed to be a RigidBody (moving or not). The arrow should freeze on target and stay planted in the target which can fall. Is there a script for that purpose?
|
|
|
Post by F1Andre on Jun 30, 2015 19:31:13 GMT
Use scanners and check if the aimer is on the target and if so make a mesh and create it at the enemies location
|
|
|
Post by Power Supersport on Jun 30, 2015 19:35:21 GMT
F1Andre, I probably think that he wants something similar like this... Arrow stuck onto the target... I use minecraft as example...
|
|
|
Post by F1Andre on Jul 1, 2015 6:02:42 GMT
Oh I understand now, that is easily done.
|
|
|
Post by n_iron on Jul 1, 2015 9:51:40 GMT
Hi darkdorian The best way would be to use the scanner for finding the target. When the scanner finds the target, then hide the projectiles (arrow) rigidBody and position the skinmesh at the vector.
When the scanner finds a target it will return the hit vector this is where you would put your mesh.
Using the Projectile Object won't return any vectors.
n_iron
|
|
|
Post by darkdorian on Jul 1, 2015 18:19:43 GMT
Use scanners and check if the aimer is on the target and if so make a mesh and create it at the enemies location F1Andre, the scanner has a straight beam. My arrow is a projectile with a curve trajectory affected by the gravity.
|
|
|
Post by darkdorian on Jul 1, 2015 18:23:48 GMT
F1Andre, I probably think that he wants something similar like this... Arrow stuck onto the target... I use minecraft as example... PowerSupersport, exactly like in your example. Arrows are stuck on the target and on the ground.
|
|
|
Post by Power Supersport on Jul 1, 2015 19:45:25 GMT
Stucking in the ground can be easier to achieve...
Sorry for not providing you a script right now... I will post a script probably tomorrow because I have a solution...
|
|