Difference between revisions of "@HouseDesignCommitItem"
From SphereWiki
(Created page with "==Description== X branch only. This triggers fires with each commited item when using AOS House Designer tool. Fires on: * Items ==References== There is no references...") |
(→Description) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Description== | ==Description== | ||
− | X branch only. This | + | X branch only. This trigger fires when an item is about to commit when using house designer. |
Line 6: | Line 6: | ||
* [[Items]] | * [[Items]] | ||
+ | ==References== | ||
+ | The following object references are explicitly available for this trigger: | ||
− | == | + | {| border="1" cellspacing="4" cellpadding="4" |
− | + | | '''Name''' || '''Description''' | |
+ | |- | ||
+ | | [[I]] || The [[Items|item]] being commited. | ||
+ | |} | ||
==Arguments== | ==Arguments== | ||
The following arguments are set for this trigger. If an argument is marked as "In" then a value will be passed in to the trigger, if an argument is marked as "Out" then it can be set to a value to affect Sphere's behaviour: | The following arguments are set for this trigger. If an argument is marked as "In" then a value will be passed in to the trigger, if an argument is marked as "Out" then it can be set to a value to affect Sphere's behaviour: | ||
+ | |||
{| border="1" cellspacing="4" cellpadding="4" | {| border="1" cellspacing="4" cellpadding="4" | ||
| '''Argument''' || '''In/Out''' || '''Description''' | | '''Argument''' || '''In/Out''' || '''Description''' | ||
|- | |- | ||
− | | local. | + | | local.id || I || ID of the item |
|- | |- | ||
− | | local.p.x || I || x location | + | | local.p.x || I || The x location of the item |
|- | |- | ||
− | | local.p.y || I || y location | + | | local.p.y || I || The y location of the item |
|- | |- | ||
− | | local.p.z || I || z location | + | | local.p.z || I || The z location of the item |
|- | |- | ||
− | + | | local.visible || I || 0 or 1 (non-visible items are things like doors and signs) return false will remove this item from the commit. If not return false a local.MaxZ will check the P.Z value of the item and update it if it's higher than the old one. | |
− | + | ||
− | | local.visible || I || 0 or 1 (non-visible items are things like doors and signs) | ||
|} | |} | ||
Line 37: | Line 42: | ||
| '''Return Value''' || '''Description''' | | '''Return Value''' || '''Description''' | ||
|- | |- | ||
− | | | + | | 1 || Prevents the item from being commited. |
|} | |} | ||
− | |||
− | |||
− | |||
− |
Latest revision as of 00:13, 28 August 2022
Description
X branch only. This trigger fires when an item is about to commit when using house designer.
Fires on:
References
The following object references are explicitly available for this trigger:
Name | Description |
I | The item being commited. |
Arguments
The following arguments are set for this trigger. If an argument is marked as "In" then a value will be passed in to the trigger, if an argument is marked as "Out" then it can be set to a value to affect Sphere's behaviour:
Argument | In/Out | Description |
local.id | I | ID of the item |
local.p.x | I | The x location of the item |
local.p.y | I | The y location of the item |
local.p.z | I | The z location of the item |
local.visible | I | 0 or 1 (non-visible items are things like doors and signs) return false will remove this item from the commit. If not return false a local.MaxZ will check the P.Z value of the item and update it if it's higher than the old one. |
Return Values
The following return values are explicitly defined for this trigger:
Return Value | Description |
1 | Prevents the item from being commited. |