1. 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

Purpose of command IDs

Discussion in 'Modding Help' started by ZeroZ30o, Feb 15, 2014.

  1. ZeroZ30o

    ZeroZ30o Haxor

    Messages:
    119
    I kind of need an explanation as to what these functions work/do:

    CBlob::getCommandID
    CBlob::addCommandID
    CRules::getCommandID
    CRules::addCommandID

    I can understand how the following works:
    But I don't get how those functions work without "SendCommand".
    Also, I figured I'd post here since this seems pretty useful for everyone.
    --- Double Post Merged, Feb 15, 2014, Original Post Date: Feb 15, 2014 ---
    this.addCommandID("string") converts string into a int8 value. Woo.
    Edit: I forgot to add, I didn't understand them because I saw it as a combination of commands, and I didn't know where it got it from. Obviously this is not the case, it's just an ID, which is useful inside "for" loops.
    Thanks norill for his answer.
     
    Last edited: Feb 16, 2014
    BlueLuigi likes this.