XML:BINA/OBJC/PATR
Jump to navigation
Jump to search
BINA/OBCJ/PATR: patrol paths
general information
- BINACJBOPatrol Path.oni is level specific. (It can be found in edition/GameDataFolder/levelXX_... )
- See HERE if you don't know how to convert an oni file into XML and vice versa.
- See HERE if you are searching for more general information such as how to handle object coordinates.
BSL support
- ai2_showpaths = 1
- ai2_dopath ai_name path_name
XML structure
<?xml version="1.0" encoding="utf-8"?> <Oni Version="0.9.30.0"> <ObjectCollection> [...] </ObjectCollection> </Oni>
[...] means at least one patrol block. Paste all a patrol data into there (this includes <Object ...> and </Object> tag).
example
<Object Id="8283" Type="PATR"> <Header> <Flags>0</Flags> <Position>-408.598755 60.1162872 -1402.20361</Position> <Rotation>0 0 0</Rotation> </Header> <OSD> <Name>patrol_32</Name> <PatrolId>32</PatrolId> <ReturnToNearest>1</ReturnToNearest> <Points> <IgnorePlayer Value="Yes" /> <MovementMode Mode="Run" /> <MoveToFlag FlagId="545" /> <Loop> <MoveToFlagLookAndWait Frames="120" FlagId="545" Rotation="5" /> <IgnorePlayer Value="No" /> <MoveThroughFlag FlagId="145" Distance="0" /> <MovementMode Mode="ByAlertLevel" /> <MoveToFlagLookAndWait Frames="300" FlagId="144" Rotation="60" /> <MoveThroughFlag FlagId="145" Distance="0" /> <MoveToFlagLookAndWait Frames="300" FlagId="146" Rotation="90" /> </Loop> </Points> </OSD> </Object>
tags
- <Flags> .. unknown -- appears to be always 0
- <Position> .. needed ?
- <Rotation> .. needed ?
- <Name> .. for BSL command "ai2_dopath"
- <PatrolId> .. used in BINA/OBJC/CHAR
- <ReturnToNearest> .. 1 and 0 possible
- <Points> .. holds actual patrol content
- <MoveToFlag FlagId="..." />
- <Stop /> (never used in Oni)
- <Pause Frames="..." />
- <LookAtFlag FlagId="..." />
- <LookAtPoint X="..." Y="..." Z="..." /> (never used in Oni)
- <MoveAndFaceFlag FlagId="..." />
- <Loop>...</Loop>
- <MovementMode Mode="Walk" />
- <MovementMode Mode="Creep" />
- <MovementMode Mode="WalkNoAim" />
- <MovementMode Mode="ByAlertLevel" />
- <MovementMode Mode="RunNoAim" />
- <MovementMode Mode="Run" />
- <MoveToPoint X="..." Y="..." Z="..." /> (never used in Oni)
- <LockFacing Facing="..." /> (not used in Oni)
- <MoveThroughFlag FlagId="..." Distance="..." />
- <MoveThroughPoint X="..." Y="..." Z="..." Distance="..." /> (not used in Oni)
- <StopLooking />
- <FreeFacing />
- <GlanceAtFlagFor FlagId="..." Frames="..." />
- <MoveNearFlag FlagId="..." Distance="..." />
- <LookFor Frames="..." Rotation="..." />
- <Unknown18 />
- <MoveToFlagLookAndWait Frames="..." FlagId="..." Rotation="..." />
- <Unknown20 Frames="..." />
- <ScriptId ScriptId="..." />
- <IgnorePlayer Value="No" /> <IgnorePlayer Value="Yes" />
- <FaceToFlagAndFire FlagId="..." Frames="..." Spread="..." />