Basic Cubescript: Variables
#53
Until such a native alias is made, you can use findbind and add2bind to add an "onrelease" script.
[cubescript]
add2bind (findbind quicknadethrow) [onrelease [echo Nade thrown!]]
// and/or
add2bind (findbind attack) [if (= (curweapon) 8) [onrelease [echo Nade thrown!]] []]
[/cubescript]
(findbind is in tools.cfg)

Just realized, quicknadethrow is going to be in default script "altaction..."
[cubescript]
loop i 10 [ if (!= $i 5) [
add2alias (concatword altaction_ $i) [onrelease [echo Nade thrown!]]] [] ]
[/cubescript]
Thanks given by:


Messages In This Thread
RE: Basic Cubescript: Variables - by V-Man - 28 Nov 11, 10:38AM
RE: Basic Cubescript: Variables - by V-Man - 28 Nov 11, 09:06PM
RE: Basic Cubescript: Variables - by V-Man - 29 Nov 11, 12:44AM
RE: Basic Cubescript: Variables - by V-Man - 29 Nov 11, 05:41AM
RE: Basic Cubescript: Variables - by V-Man - 30 Nov 11, 05:30PM
RE: Basic Cubescript: Variables - by V-Man - 01 Dec 11, 03:50AM
RE: Basic Cubescript: Variables - by tempest - 01 Dec 11, 03:17PM
RE: Basic Cubescript: Variables - by V-Man - 02 Dec 11, 12:55PM
RE: Basic Cubescript: Variables - by V-Man - 03 Dec 11, 07:37AM
RE: Basic Cubescript: Variables - by Bukz - 03 Dec 11, 01:11PM
RE: Basic Cubescript: Variables - by V-Man - 04 Dec 11, 06:43AM
RE: Basic Cubescript: Variables - by V-Man - 04 Dec 11, 11:21PM
RE: Basic Cubescript: Variables - by V-Man - 05 Dec 11, 10:37AM
RE: Basic Cubescript: Variables - by V-Man - 12 Dec 11, 10:27PM