Difference between revisions of "Target Object Commands"
(→Commands) |
(→Commands) |
||
Line 12: | Line 12: | ||
OBJECT@TARGET@COMMAND@VARIABLS | OBJECT@TARGET@COMMAND@VARIABLS | ||
− | ===Commands=== | + | ===Commands for OBJECT=== |
{|class="wikitable" | {|class="wikitable" | ||
|- | |- |
Revision as of 20:04, 12 December 2017
return to Gizmos Community Projects
Information
Below is a list of commands you can use to change values and send messages to other objects as a spawn sequence of this spawner. In the following examples below, i will show you a few simple commands and what they do.
- OBJECT@108372@SetHue()@FF0000 -- this will find the object 108372 and paint it red.
- OBJECT@SELF@SetRange()@5,10 -- this will set the spawners min and max range to min = 5 and max = 10
- OBJECT@104938@SetObjVar()@datatable:{32,34,35,36} -- this will set a ObjVar named datatable on the object 104938.. the table will contain {32,34,35,36}
- OBJECT@103928@SendMessage()@deactivate -- if the object 103928 has a event handler for deactivate, this would fire that event handler on object 103928
When making or using these commands think of it as follows..... your telling the spawner that you want to do something to an OBJECT. but now the spawner needs to know what object to target. You can enter in the target objects id value, or you can use the word SELF, if you want to directly target the spawner running this sequence. Now that the spawner knows its an object you want to target, and what the target is, it will need to know the COMMAND, and the variables for the command. Most formatting goes like this...
OBJECT@TARGET@COMMAND@VARIABLS
Commands for OBJECT
Command | Format | Description |
---|---|---|
SendMessage() | OBJECT@<TargetId>@SendMessage()@<Message> | This will send the <Message> to the <TargetId>. If the target has an event handler for <Message> then it should fire. |
SetHue() | OBJECT@<TargetId>@SetHue()@hue:<hue color> | This will hue the <TargetID> the color <hue color> |
return to Gizmos Community Projects