Spells

How can i script so that when i press, for example 3 it will cast a fireball rather than pressing left mouse button to shoot weapon?

Many thanks.
Lewis Stevens

You would use a combination of the Input Manager in the Editor and the Input class (see script reference) in Script and check for the specific key you defined in the input manager instead of checking for the mouse button

Well i that would assign the diff key reference but how will it make it cast a spell… like …play animation then create fireball… then shoot fireball?? then how wilkll it check for collision?

Have you followed the 3D fps tutorial? What you are asking is in there, just change the weapons for spells, and you are on your way.

Not atm, cant seem to find out why nothing im importing is being textured… i follow the tutorial exactly and still nothing…