1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

addBlob() function error.

Discussion in 'Modding [KAG Classic]' started by jammer312, Mar 15, 2013.

  1. jammer312

    jammer312 Bison Rider Tester

    Messages:
    46
    I read in the wiki that the function addBlob has this syntax addBlob("item-name", "Path/To/Entity/File.cfg",Xposition,Yposition,Team); . Why can't I call bison with the name of bison through this function?
     
    Boxpipe likes this.
  2. GloriousToast

    GloriousToast Haxor Donator

    Messages:
    1,463
    reasons why
    sv_gold_only needs to be 1
    the command can be limited to this
    addBlob(`zombie`, `Entities/Actors/Bison.cfg`, 100, 100, 3);
    however what i can see from this is the bison just moves to the right
     
  3. jammer312

    jammer312 Bison Rider Tester

    Messages:
    46
    CreateActor failed: factory: bison config: Entities/Actors/Bison.cfg
     
  4. GloriousToast

    GloriousToast Haxor Donator

    Messages:
    1,463
    do addBlob(`zombie`, `Entities/Actors/Bison.cfg`, 100, 100, 3);
     
  5. jammer312

    jammer312 Bison Rider Tester

    Messages:
    46
    addBlob("item-name", "Path/To/Entity/File.cfg",Xposition,Yposition,Team);!!!
    wiki have example: addBlob("mylantern", "Entities/Items/Lantern.cfg",64 ,64,0);
     
  6. GloriousToast

    GloriousToast Haxor Donator

    Messages:
    1,463
    there are two types of entities
    items
    Code:
    addBlob("item-name", "Entities/Items/item-name.cfg",64 ,64,0);
    actors
    Code:
    addBlob("item-name", "Entities/Items/item-name.cfg",64 ,64,0);
    Edit: actually i am getting an error of my own for some reason it wont work unless i put zombie for item name
     
  7. VanHuek

    VanHuek KAG Guard Tester

    Messages:
    751
    The error is item-name is actually factory ID so for lantern it should be:

    Code:
    addBlob("genericitem", "Entities/Items/Lantern.cfg",64 ,64,0);
    Please note it has to be Lantern not lantern (note the capital)

    and for Zombies/Skeletons/Bison/ZombieKnights/Gregs/Wraiths factory ID is zombie

    For portal it is portal.

    Keg it is keg..

    https://forum.kag2d.com/threads/how...-boulders-lanterns-zombies-etc-per-map.10477/

    The link above is extremely helpful for getting the command, just add /rcon before them.
     
  8. jammer312

    jammer312 Bison Rider Tester

    Messages:
    46
    I knew it before but thank you for trying help.