Difference between revisions of "UpdateTransformWithParentMessage"

From SWGANH Wiki
Jump to: navigation, search
(Struct)
Line 1: Line 1:
__NOTOC__
+
{{PageHeader|Server Packet|UpdateTransformWithParentMessage (C867AB5A)}}
 
+
 
{| border="0" width="90%" cellpadding=6
 
{| border="0" width="90%" cellpadding=6
 
|-
 
|-
Line 58: Line 57:
 
* '''UpdateCounter''':
 
* '''UpdateCounter''':
 
:Number of movement updates the object has done. Incremented +1 for each new movement.
 
:Number of movement updates the object has done. Incremented +1 for each new movement.
 
  
 
This is the direction for the object to face after moving. It is calculated by (Angle / 0.0625) where angle is in radians.
 
This is the direction for the object to face after moving. It is calculated by (Angle / 0.0625) where angle is in radians.
Line 72: Line 70:
 
|-
 
|-
 
|}
 
|}
 
 
|}
 
|}
  
 
----
 
----
 
==Sample Code==
 
----
 
 
<pre>
 
Insert Code Snippet Here...
 
</pre>
 
 
 
==Sample Packet==
 
==Sample Packet==
  

Revision as of 12:44, 27 September 2007

Server Packet - UpdateTransformWithParentMessage (C867AB5A)

SWGANH Wiki is a repository of Star Wars Galaxies Developer information. This site is only meant to be used by SWGANH Developer team.

Struct


SHORT Operand_Count
INT Opcode
LONG CellID
LONG ObjectID
SHORT PositionX
SHORT PositionY
SHORT PositionZ
INT UpdateCounter
BYTE ??
BYTE Direction

Variable Descriptions


Opperand_Count = 9

Opcode = C867AB5A


  • CellID:
Cell where the object is moving.
  • ObjectID:
ObjectID that you are moving.
  • New Position of Object.
PositionX':
PositionY':
PositionZ':


The value is transformed the following way.
(Coordinate * 8) = Position
(Position / 8) = Coordinate
This is to bound the possible position movement in a cell.
  • UpdateCounter:
Number of movement updates the object has done. Incremented +1 for each new movement.

This is the direction for the object to face after moving. It is calculated by (Angle / 0.0625) where angle is in radians.

Tags


S→C This packet originates on the server.

75% This packet has been partially reversed.


Sample Packet

Insert Sample Packet Here...