Author Topic: How do you show a variable?  (Read 459 times)

I want to make VCE Prints show the current ammo amount of the CnS weapons.
Code: [Select]
registerOutputEvent("Player", "ACRRefillAmmo");

function Player::ACRRefillAmmo(%obj, %client)
{
    %obj.toolAmmo[%obj.currTool] = 30;
    %obj.client.quantity["ReloadAmmo"] = 60;
    %obj.client.quantity["ReloadCount"] = 0;
%obj.playThread(2, plant);
    commandToClient(%obj.client,'centerPrint',"<just:right>\c6ACR Ammo Refilled!", 1, 2, 3, 4);  
}

Code: [Select]
registerSpecialVar(Player, "Ammo", "%client.player.toolAmmo[%client.player.currTool]");The code above works perfectly but the one below doesn't show up.
Code: [Select]
registerSpecialVar(Client, "AmmoReload", "%client.quantity[ReloadAmmo]");
[ReloadAmmo] is a variable that is generated by the CnS weapons.
How do I make this variable show up in VCE Prints?

unbump: I worked it out myself. (Where is this damn delete topic button)