Thread: [Battlescape] appendHit - will rep

Results 1 to 3 of 3
  1. #1 [Battlescape] appendHit - will rep 
    Donator

    Join Date
    Jul 2009
    Posts
    1,453
    Thanks given
    29
    Thanks received
    12
    Rep Power
    69
    Hey guys.

    I got an error, over this code:
    Code:
    Server.s.npcHandler.npcs[attacknpc].appendHit(misc.random(hit)/3);
    The code tells java to look for the public void appendHit(int, amt) in the file NPC.java - is that correct?

    ..And how do i change it, so it looks for appendHit in client.java, instead of any other place?

    Thank you will rep+
    Reply With Quote  
     

  2. #2  
    ZRPS
    Guest
    Server.s.npcHandler.npcs[attacknpc].appendHit(misc.random(hit)/3);
    replace it with
    [attack].appendHit(misc.random(hit)/3);
    ?
    lol even you can make that up.
    just look for your attack method, in battlescape it's private void attack or void attack it think.
    do you have a remove object method for Bs?
    Reply With Quote  
     

  3. #3  
    Donator

    Join Date
    Jul 2009
    Posts
    1,453
    Thanks given
    29
    Thanks received
    12
    Rep Power
    69
    Even me - hehe
    thank you very much.

    Actually i dont got a remove object method - only a spawn one.
    I suppose we can import deltas?
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •