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

[Solved] Making a scroll switch your player team (not just the blob)

Discussion in 'Modding Help' started by Frikman, Sep 4, 2016.

  1. Frikman

    Frikman Bison Rider

    Messages:
    162
    Hello, for ZFM+ I wanted to make scrolls you can randomly find underground that turn you into a zombie class and swap your team. I tried adding the following line to the base scroll I'm using
    [​IMG]
    The problem is, when I use the scroll only my blob changes teams, but not my player. This means I'll still be on my initial team upon use but my blob will be red, and on respawn I'll go back to being blue. What do I need for a full team swap?
     

    Attached Files:

    PUNK123 likes this.
  2. blackjoker77777

    blackjoker77777 Haxor Tester
    1. Zen Laboratories

    Messages:
    441
    As you can see in this line, caller is actually a blob:
    and using server_setTeamNum(int) on a blob will change it's team to the one picked, so and in order to make the scroll change the player team we need to get the Player that uses the 'caller' blob, and this could be easily done by simply changing this
    upload_2016-9-4_20-5-59.png
    To this
    upload_2016-9-4_20-7-37.png
    Hope this helps.
    Have a nice day.
     
    Frikman likes this.
  3. Frikman

    Frikman Bison Rider

    Messages:
    162
    It's working fine and dandy. Thanks again mang, you're great c: