Skip to content

JSON Campaign Questions

Is there a way to delete a campaign json? I'm not seeing a function for it. Or is it just going to be DeleteCampaignDatabase? Also if I use SetCampaignJson is it supposed to overwrite an existing json campaign with the same sCampaignName and sVarName with the new jValue? I'm hoping I can just overwrite it. It doesn't seem to be the case but I also don't exactly know what I'm doing. ;)

Comments

  • DazDaz Member Posts: 127
    You can use
    // This will remove ANY campaign variable. Regardless of type.
    void DeleteCampaignVariable(string sCampaignName, string sVarName, object oPlayer=OBJECT_INVALID)

    I don't know if setting an existing one to JsonNull() will delete it,
Sign In or Register to comment.