- Home /
On Lerpz game making shooting monster
Hi, I have been playing arround with Lerpz tutorial, and I have added new models for enemies, and I have a robot with a canon, I want it to shoot Lerptz instead of following him for melee. Anyone knows a script or can help me how to do it? 1,000 billion thanks in advance
Answer by GesterX · Apr 25, 2011 at 05:59 PM
See the second example here: http://unity3d.com/support/documentation/ScriptReference/Object.Instantiate.html
This type of code (or similar) is used to fire a bullet in most games.
Thanks, but there is a very weird effect on the script: Here you have a link on youtube about the effect, I have just recorded it : youtube.com/watch?v=b9xm_UZRqX0
It looks like you have Instantiate in a part of the script which is getting run very often. Either in the update or some other part
Your answer
Follow this Question
Related Questions
Error in script to make a monster shoot against the player 1 Answer
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Disable & Re-enable Script 1 Answer
Lerpz Health Issue 1 Answer
Wandering AI Monster 2 Answers