I want to set up a "one-time only" announcement, and then revert back to my old announcement. Anyone know how to set up a variable to be the value of another variable?
something like this:
Code: Select all
set announce_this "vsay IamMedic; say_team I am going to revive you."
bind , "vstr announce_this"
bind 4 "cg_drawgun 1; weaponbank 4; cg_drawgun 0; set last_announcement announce_this; vstr set_last"
set set_last "set announce_this 'vsay_team Move ^4Here goes a ^7Gre^hnade!!!'; bind MOUSE1 +attack; -attack; vstr reset_last"
set reset_last "set announce_this last_announcement"
I have a couple workarounds (e.g., other grenade scripts and rebindings) but I wanted to know if it was possible to assign a variable to the value of another variable.
I don't want to do a vstr in this instance because the variable is dynamic and changes.
Anyone know how to do this?
Thanks.