The createloot command is used to spawn some junk loot that can be picked up.
"then(createloot, x position, y position, type of loot)"
Argument |
Function |
x position |
The x position, relative to the object, where the loot will be created. |
y position |
The y position, relative to the object, where the loot will be created. |
object |
The type of loot that will spawn. (See table) |
Index |
Item That Spawns |
all |
All loot items. |
allnormal |
All loot items that would spawn normally during a raid. |
healthkit |
A normal, red healthkit. |
smallhealthkit |
A small, green healthkit. |
bighealthkit |
A big, blue healthkit. |
ammokit |
A normal, brown ammokit. |
bigammokit |
A big, silver ammokit. |
hugeammokit |
A huge, gold ammokit. |
smallammokit |
A small, green ammokit. |
cashbill |
A billt. |
cashcoin |
A coin. |
And example of the createloot command used in a script is as follows...
The following script creates 4 small healthkits when the block is destroyed.
if(destoyed)
{
then(repeat,4)
then(createloot,16,16,smallhealthkit)
}
|
|