Here is the script, it can't work.
#include "events_h"
#include "plt_quest"
#include "wrappers_h"
#include "global_objects_h"
#include "utility_h"
void main()
{
event ev = GetCurrentEvent();
int nEventType = GetEventType(ev);
switch(nEventType)
{
case EVENT_TYPE_TEAM_DESTROYED:
{
if(GetEventInteger(ev,0) == 1 && GetEventInteger(ev,0) == 2)
{
WR_SetPlotFlag(PLT_QUEST, QUEST_COMPLETE, TRUE);
resource rCutscene = R"quest_complete.cut";
CS_LoadCutscene(rCutscene);
PlayCutscene();
}
break;
}
HandleEvent(ev, RESOURCE_SCRIPT_AREA_CORE);
}
}
// I also tried this:
if(GetEventInteger(ev,0) == 1
{
if(GetEventInteger(ev,0) == 2
{
NOthing happend.
How can I put two teams in one condition?
Thanks!
Modifié par Ldfxf, 17 août 2010 - 01:18 .





Retour en haut






