Difference between revisions of "TARGETF"
From SphereWiki
(Created page with 'Targetf is a command you can use to directly target a character or item and using a function on it without manually creating an memory item or such. Using the targetf itself work...') |
(Add TargP) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | Targetf is a command you can use to directly target a character or item and using a function on it without manually creating an memory item or such. Using the targetf itself works like calling an | + | Targetf is a command you can use to directly target a character or item and using a function on it without manually creating an memory item or such. Using the targetf itself works like calling an ordinary function and you can put arguments after the function normally. |
ex. targetf f_hello or targetf f_hello 1,2 | ex. targetf f_hello or targetf f_hello 1,2 | ||
Line 7: | Line 7: | ||
SRC= player using the function | SRC= player using the function | ||
− | ARGO= target's UID | + | ARGO= target's UID |
− | + | TARGP= ID of the tiles when target is a static tile | |
+ | |||
+ | local.id stores the ID of the targeted object | ||
+ | [[Category:Reference Compendium]] | ||
+ | [[Category: Properties and Functions]] |
Latest revision as of 22:18, 2 January 2024
Targetf is a command you can use to directly target a character or item and using a function on it without manually creating an memory item or such. Using the targetf itself works like calling an ordinary function and you can put arguments after the function normally.
ex. targetf f_hello or targetf f_hello 1,2
In targetf:
SRC= player using the function
ARGO= target's UID
TARGP= ID of the tiles when target is a static tile
local.id stores the ID of the targeted object