larrytmc Posted December 27, 2009 Share Posted December 27, 2009 I am trying to make a gunlanceSo I need to learn how to script a weapon so it can fire simple magic(later on, projectiles) while equipped I have never written any script before and my knowledge of it is zero. I believe that these are the script that I need: Something that check if the player has that item equippedSomething that tell the program what button initiate the magic (IE, pressing the G key) I looked at some other people's script, and dig out something that might be useful Here is what I come up with It is going to start like this scn [script name][variables] begin OnEquip playerif player.isKeyPressed2 G(I am not sure what I need here)[weapon name].cast [spell name] Is it just that simple? and by the way this is what I am trying to make...http://img690.imageshack.us/img690/9130/speara.jpg Link to comment Share on other sites More sharing options...
Recommended Posts