PDA

View Full Version : [Tutorial] Objectives


Dest
23rd Oct 2005, 02:59 PM
Objectives

Defence Alliance 2 contains at this moment three differant objective types, which are: Destroyable, Touchtable and Useable.
This short tutorial only mentions destroyable, the other objectives are pretty much the same.

Destroyable:

http://www.home.versatel.nl/waverstr13/Tutorials/destroyable.JPG

This is the 'static mesh' you need to place into your map as destroyable objective. You can change the staticmesh under 'Display>Staticmesh'

When you have done placing the objective in your map, you need to edit some things showing below.

http://www.home.versatel.nl/waverstr13/Tutorials/destroyable_da.JPG

[bonusTime] the time added to the game when this objective is completed
[bWinObjective] if this is your last objective you need to set it to 'true', otherwise at 'false' ofcourse.
[MUB+] this is the mission objective showed in the HUD. you can set the image you want to show, the time is message is shown and ofcourse the mission objective text.

http://www.home.versatel.nl/waverstr13/Tutorials/destroyable_destroyable.JPG

[alarmRadius] the redius of the alarm that is playing when the objective is under attack (this is set by default)
[AlarmSound] the sound that is played (this is set by default)
[ExplosionType] you can set your emitter explosion effect here (this is set by default)
[Health] here you need to set the health of the objective

Dest
23rd Oct 2005, 03:06 PM
http://www.home.versatel.nl/waverstr13/Tutorials/destroyable_gameobjective.JPG

[DefensePriority] this you have to set from the first objective to the final from 9 to 0. So if you have 2 objectives, then the first objective should have priority 1 and the final objective 0.
[DefenseScriptTags] this is the event of the unrealscriptedsequence, unrealscriptedsequence is mentioned further on in the tutorial.
[ObjectiveName] here you have to set your name of the objective, this is also shown when you aim at the objective ingame.
[Score] the score the player gets when destroyed this objective

This is everything you need to do for the objective, now going furhter with the unrealscriptedsequence:

http://www.home.versatel.nl/waverstr13/Tutorials/unrealscriptedsequence.JPG

Place this actor where you want the bots to defend your objective. Also point it at the right direction.

http://www.home.versatel.nl/waverstr13/Tutorials/unrealscriptedsequence_events.JPG

As mentioned above here you have to set the event which you have filled in at [Destroyable>GameObjective>DefenseScriptTags]

Everything else is set by default.

Dest
23rd Oct 2005, 03:14 PM
Now the Buildbeacons where bots build turrets depending which objective is playing in the map at that moment.

http://www.home.versatel.nl/waverstr13/Tutorials/buildbeacon_menu.JPG

Place this actor in the map where bots should build a turret or ammobox. Point the actor in the correct direction where the turret is going to point at.

http://www.home.versatel.nl/waverstr13/Tutorials/buildbeacon.JPG

[buildclass] The turret or ammobox that the bot should build
[Objective] the object of the current objective, shown below
[suggestbuild] the priority of the build
[Team] 0 for defenders, 1 for attackers

http://www.home.versatel.nl/waverstr13/Tutorials/destroyable_object.JPG

This is what you have to type in [Objective] in the buildbeacon actor.

Dest
23rd Oct 2005, 03:19 PM
If you want to let the player spawn a bit closer to the next objective, you have to place ONLY triggeredplayerstarts in your map

http://www.home.versatel.nl/waverstr13/Tutorials/triggeredplayerstart.JPG

[Event.Tag] here you have to name the event of the objective which will be completed when you want to playerstarts to be activated. If the playerstarts are enabled (mentioned below) then you dont have to fill anything here.

[Playerstart.bEnabled] When this is the first spawn point of the game this should be 'enabled', if this playerstart is linked with an further objective which isnt completed yet set is this at 'false' (as mentioned above)
[TeamNumber] 0 for defenders, 1 for attackers