Difference between revisions of "Spawned Object Commands"
(→Commands) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 16: | Line 16: | ||
|- | |- | ||
| hue || hue:value || this will change the object being spawned to this hue value | | hue || hue:value || this will change the object being spawned to this hue value | ||
− | |||
− | |||
|- | |- | ||
| scale || scale:value || This will change the scale of the object being spawned to value | | scale || scale:value || This will change the scale of the object being spawned to value | ||
Line 37: | Line 35: | ||
| title || title:value || This will change the title of the spawned object to this value | | title || title:value || This will change the title of the spawned object to this value | ||
|- | |- | ||
− | | location *v1.4*|| location:x,y,z || This will spawn the object at the given location of x,y,z | + | | location *v1.4*|| location:x,y,z || This will spawn the object at the given location of x,y,z or you can use the SELF keyword for the x,y,z to spawn the object at the spawners location |
|- | |- | ||
| setobjvar *v1.4*|| setobjvar:key,value || This will set an objvar on the spawned object to they key,value | | setobjvar *v1.4*|| setobjvar:key,value || This will set an objvar on the spawned object to they key,value | ||
|- | |- | ||
| rotate *v1.4*|| rotate:x,y,z || This will rotate the spawned object to the x,y,z values | | rotate *v1.4*|| rotate:x,y,z || This will rotate the spawned object to the x,y,z values | ||
+ | |- | ||
+ | | effect *v1.4*|| effect:value || this will play an effect on the spawned monster | ||
+ | |- | ||
+ | | sound *v1.4*|| sound:value || This will play a sound at the spawned monsters location | ||
+ | |- | ||
+ | | body *v1.4*|| body:value || this will change the body value of the spawned monster | ||
+ | |- | ||
+ | | invulnerable *v1.4*|| invulnerable:value || This will turn the spawned monster invulnerable | ||
+ | |- | ||
+ | | facing *v1.4*|| facing:value || This will set the spawned monsters initial facing when it spawns | ||
|- | |- | ||
|} | |} | ||
return to [[Gizmos Community Projects]] | return to [[Gizmos Community Projects]] |
Latest revision as of 03:16, 15 December 2017
return to Gizmos Community Projects
Information
Below is a list of commands you can use on spawned objects to change various values. These commands can be found in the gizmos_simple_spawner.lua, they reside in the HandleChanges function. It's easy to create your own command(s). When you are using the format below, here is an example of how to edit the command into the text box on the spawner.
- goblin@hue:FF0000 -- in this example you set the goblin hue to red
- goblin@location:3.23,0.00,25.93 -- in this example the goblin will ignore the random spawn and be moved to location(3.23,0.00,25.93)
You can also combine these commands to do more then one thing like the following examples. There really isn't a hard limit on how many commands you can do when you spawn a monster.
- goblin@hue:FF0000@location:3.23,0.00,25.93@str:50 -- in this example we set the hue,location and str of the goblin.
- goblin@str:50@agi:45@int:17@con:29@wis:12@will:15 -- in this example we set all the stats of the goblin.
Commands
Command | Format | Description |
---|---|---|
hue | hue:value | this will change the object being spawned to this hue value |
scale | scale:value | This will change the scale of the object being spawned to value |
str | str:value | If the spawned object is a monster it will change the str to this value |
agi | agi:value | If the spawned object is a monster it will change the agi to this value |
con | con:value | If the spawned object is a monster it will change the con to this value |
int | int:value | If the spawned object is a monster it will change the int to this value |
wis | wis:value | If the spawned object is a monster it will change the wis to this value |
will | will:value | If the spawned object is a monster it will change the will to this value |
name | name:value | This will change the name of the spawned object to this value |
title | title:value | This will change the title of the spawned object to this value |
location *v1.4* | location:x,y,z | This will spawn the object at the given location of x,y,z or you can use the SELF keyword for the x,y,z to spawn the object at the spawners location |
setobjvar *v1.4* | setobjvar:key,value | This will set an objvar on the spawned object to they key,value |
rotate *v1.4* | rotate:x,y,z | This will rotate the spawned object to the x,y,z values |
effect *v1.4* | effect:value | this will play an effect on the spawned monster |
sound *v1.4* | sound:value | This will play a sound at the spawned monsters location |
body *v1.4* | body:value | this will change the body value of the spawned monster |
invulnerable *v1.4* | invulnerable:value | This will turn the spawned monster invulnerable |
facing *v1.4* | facing:value | This will set the spawned monsters initial facing when it spawns |
return to Gizmos Community Projects