Deprecated: Assigning the return value of new by reference is deprecated in /home/jkhub/public_html/library/includes/Skin.php on line 134

Deprecated: Assigning the return value of new by reference is deprecated in /home/jkhub/public_html/library/includes/Title.php on line 132

Deprecated: Assigning the return value of new by reference is deprecated in /home/jkhub/public_html/library/includes/Title.php on line 219
JK Hub - [Reference]

COG Verb - CreateThingAtPos

(Difference between revisions)
Revision as of 03:08, 31 March 2006
JKSERVER (Talk | contribs)

← Previous diff
Current revision
ZeqMacaw (Talk | contribs)

Line 1: Line 1:
-Creates a thing at a position. If the template's model has an insert offset, then that offset will be added to the position. Syntax: +Creates a thing at a position. If the template's model has an insert offset, then that offset will be added to the position.
 +Syntax:
new_thing=CreateThingAtPos(template, sector, position, 'p y r'); new_thing=CreateThingAtPos(template, sector, position, 'p y r');
sector: It is important to give the thing the correct sector to avoid sector problems. Use the Position's Sector code from the Tutorial Section if you cannot get the sector. sector: It is important to give the thing the correct sector to avoid sector problems. Use the Position's Sector code from the Tutorial Section if you cannot get the sector.
-position: This is the position to create the thing at. +position: This is the position to create the thing at. Note that the insert offset of a 3do is added to this.
'p y r': This is the pitch, yaw, and roll for the created thing's orientation. You can use a vector variable or the 'p y r' form. 'p y r': This is the pitch, yaw, and roll for the created thing's orientation. You can use a vector variable or the 'p y r' form.

Current revision

Creates a thing at a position. If the template's model has an insert offset, then that offset will be added to the position.

Syntax:

 new_thing=CreateThingAtPos(template, sector, position, 'p y r'); 

sector: It is important to give the thing the correct sector to avoid sector problems. Use the Position's Sector code from the Tutorial Section if you cannot get the sector.

position: This is the position to create the thing at. Note that the insert offset of a 3do is added to this.

'p y r': This is the pitch, yaw, and roll for the created thing's orientation. You can use a vector variable or the 'p y r' form.

  • Create:
This page was last modified 19:36, 14 September 2008.   This page has been accessed 1,015 times.