Full Version : Boat riding
xmlspawner >>Q&A >>Boat riding


<< Prev | Next >>

malavon- 03-28-2006
Hi Arte!
Its possible to make a spawner, which spawn rideable small boat and keep this boat going through waypoints?

Thanks.

ArteGordon- 03-28-2006
Interesting question. I believe that it can be done using the simplemap item. I'll have to try it out.

malavon- 03-28-2006
First step I have ready. I spawned wrong item, now spawner make SmallBoat with Tiller Man.

Then question is, its possible give to Tiller Man some commands (with checking coords)?

EDIT: Second spawner with proximity trigger, which have SETONTRIGMOB command with SAY or MSG don't work. If I wrote manually "turn right", tiller man working.

ArteGordon- 03-29-2006
Here is a simple spawner that will spawn a boat and a map with a set of pins placed in it. It assigns the map to the MapItem property of the boat which is what allows the tillerman to chart courses, so that if the player says "Start" it will run through the set of nav points.
You can see the route by double clicking on the map that is located at the center of the boat.
I put some sample points in there to run a loop starting and ending at the britain docks.
The spawner runs sequentially to first spawn the map, and then the boat which gets assigned the map (the order is important because the map has to exist before it can be assigned to the boat).
Just [xmlload the spawner and it will automatically set things up.

QUOTE

<Spawns>
  <Points>
    <Name>BoatSpawn</Name>
    <UniqueId>025a4250-0e8a-4dcf-9d5a-62809c8879cf</UniqueId>
    <Map>Felucca</Map>
    <X>1483</X>
    <Y>1780</Y>
    <Width>0</Width>
    <Height>0</Height>
    <CentreX>1483</CentreX>
    <CentreY>1780</CentreY>
    <CentreZ>-5</CentreZ>
    <Range>5</Range>
    <MaxCount>2</MaxCount>
    <MinDelay>0</MinDelay>
    <MaxDelay>0</MaxDelay>
    <DelayInSec>False</DelayInSec>
    <Duration>0</Duration>
    <DespawnTime>0</DespawnTime>
    <ProximityRange>-1</ProximityRange>
    <ProximityTriggerSound>500</ProximityTriggerSound>
    <TriggerProbability>1</TriggerProbability>
    <InContainer>False</InContainer>
    <MinRefractory>0</MinRefractory>
    <MaxRefractory>0</MaxRefractory>
    <TODStart>0</TODStart>
    <TODEnd>0</TODEnd>
    <TODMode>0</TODMode>
    <KillReset>1</KillReset>
    <ExternalTriggering>False</ExternalTriggering>
    <SequentialSpawning>1</SequentialSpawning>
    <AllowGhostTriggering>False</AllowGhostTriggering>
    <SpawnOnTrigger>False</SpawnOnTrigger>
    <SmartSpawning>False</SmartSpawning>
    <Team>0</Team>
    <Amount>1</Amount>
    <IsGroup>False</IsGroup>
    <IsRunning>True</IsRunning>
    <IsHomeRangeRelative>True</IsHomeRangeRelative>
    <Objects2>simplemap/bounds/(1400,1700,200,200)/newpin/(1496,1778)/newpin/(1495,1812)/newpin/(1481,1780)/protected/true/movable/false:MX=1:SB=1:RT=0:TO=0:KL=0:RK=0:CA=0:DN=-1:DX=-1:SP=1:PR=-1:OBJ=smallboat/mapitem/GETONSPAWN,1,serial/nextnavpoint/0:MX=1:SB=2:RT=0:TO=0:KL=0:RK=0:CA=0:DN=-1:DX=-1:SP=1:PR=-1</Objects2>
  </Points>
</Spawns>


from xmlspawner2.txt

QUOTE

- added a new item, the SimpleMap that allows you to add/spawn maps with preplaced pins.  Set the Bounds property to define the area displayed in the map.
To add a pin to the map, just set the NewPin property to the pin location in world coordinates.
For example, having a spawner spawn something like

simplemap/bounds/(3000,3200,400,400)/newpin/(3100,3350)/protected/true

Note, that bounds are set as (x,y,width,height) in world coordinates.
You can also insert multiple pins by just adding more newpin assignments.


malavon- 03-29-2006
Nice! Thanx a lot, that's beautiful smile.gif