Class change when change weapon type.

Discussion in 'Learning Javascript' started by Jeremy Cannady, Oct 25, 2015.

  1. Jeremy Cannady

    Jeremy Cannady Coldfire Veteran

    Messages:
    449
    Likes Received:
    261
    Location:
    Texas
    First Language:
    English
    Hello Everyone,


    This is my first script that I have been making.
    I haven't done any coding before.


    Took me quite a while to make this work.


    Below is my script of changing the class of your actor when you equip a different weapon type.


    Please note this is not when you change a weapon but when the weapon type changes.


    I need help completing the script.


    The script seems to long and I think I may have done this the long way.


    If anyone can shorten things that would be great.


    http://pastebin.com/Seu33LCV
     
    Last edited by a moderator: Oct 10, 2016
    #1
  2. OZiO

    OZiO Veteran Veteran

    Messages:
    40
    Likes Received:
    39
    First Language:
    English
    Hey Jeremy,


    Not sure if you're still supporting this, but I'm a bit stuck on implementing this. Whenever I run this with my classes/weapon types set up I get this error back. I was wondering if you had any insight on this?

    2016-09-16 14_41_52-Project Bersona.png
     
    #2
  3. Jeremy Cannady

    Jeremy Cannady Coldfire Veteran

    Messages:
    449
    Likes Received:
    261
    Location:
    Texas
    First Language:
    English
    That was my first ever script, I am sure there is some errors. I will have to take a look at the entire script and probably rewrite it now that I know a lot more.
    I am not really active anymore. I am getting back in to programming though so I am going through everything.


    Hmm, I can't find anything wrong using the script. 
    Make sure that the class that you are changing into has access the weapon you are equipping. 


    Edit: Edited as of 10/9/2016 and put pastebin link into the description.
     
    Last edited by a moderator: Oct 10, 2016
    #3

Share This Page