Behavior Offset: Difference between revisions

From PSwiki
Jump to navigation Jump to search
Magodra (talk | contribs)
No edit summary
Magodra (talk | contribs)
No edit summary
Line 4: Line 4:


   Ex: <... offset="1.0" side_offset="2.0" offset_type="TBD" .../>
   Ex: <... offset="1.0" side_offset="2.0" offset_type="TBD" .../>
To prevent NPCs stacking up if multiple chases one target. The offset_angle could be used. When a new target is selected a new position on the arc
of the green area is selected. The following example show about how to get this.
  Ex: <... offset="2.0" offset_angle="45" .../>


The offset parameters are used by the [[Behavior_Operations#Chase_Operation|Chase Operation]].
The offset parameters are used by the [[Behavior_Operations#Chase_Operation|Chase Operation]].

Revision as of 22:49, 12 February 2011

This describes the offset parameter for NPC behavior scripts. The blue line show normal offsets. Where the axis pointing towards the npc in the lower right corner is the direction of the offset value. Where the axis to the right is the side_offset. The red offset is the axis when setting offset_type to TBD.

 Ex: <... offset="1.0" side_offset="2.0" offset_type="TBD" .../>

To prevent NPCs stacking up if multiple chases one target. The offset_angle could be used. When a new target is selected a new position on the arc of the green area is selected. The following example show about how to get this.

 Ex: <... offset="2.0" offset_angle="45" .../>

The offset parameters are used by the Chase Operation.