The addtarget command is used to add specific types of targets to the block's target list.
"then(addtarget, type)"
Argument |
Function |
type |
The type of target to be added. (See table) |
Type |
Description |
block |
All modding blocks. |
player |
The player. |
enemy |
All enemy guards. |
And example of the addtarget command used in a script is as follows...
The following script uses the targetting system to poison enemies and players in range.
if(always)
{
then(cleartarget)
then(addtarget,player)
then(addtarget,enemy)
then(filtertarget,distance,<,196)
then(statustarget,poison,20)
}
|
|