Albus
02-07-2007, 10:21
This wondeful command has one principal use.
Do you like in yours mods, detect if one o some soldiers( ally or enemy ) enter inside a vehicle ?
Well , this is your command.
some examples :
{trigger "vehiculo_capt"
{condition
{type 1}
{term 1 "crew"
{"vehicle" "163"}
{"units"
{"actors/mids" 1}
}
}
{term 2 "crew"
{"vehicle" "163"}
{"units"
{"actors/mids" 2}
}
}
{term 3 "crew"
{"vehicle" "163"}
{"units"
{"actors/mids" 3}
}
}
{term 4 "crew"
{"vehicle" "163"}
{"units"
{"actors/mids" 4}
}
}
}
{actions
{"task"
{name "mis3"}
{state complete}
}
{"message"
{text "mission/b_12/vehiculo"}
}
{"event"
{event 3}
{mode set}
{delay 8}
}
}
}
In this trigger if any of the soldiers with mids 1,2,3 or 4 enter inside vehicle with mid 163 then is activate.
Other example :
{trigger "vehiculo_capt"
{condition
{term 1 "crew"
{"vehicle" "163"}
{"units"
{"actors/mids" 1 2 3 4}
}
}
}
{actions
{"task"
{name "mis3"}
{state complete}
}
{"message"
{text "mission/b_12/vehiculo"}
}
{"event"
{event 3}
{mode set}
{delay 8}
}
}
}
In this trigger vehicle mid 163 is a tank, and if all crew member mids 1,2,3 and 4 are inside tank then trigger is activated.
There are too much examples, and you can combine with other TERMS in one trigger.
Last example, imagine a Locomotive, we create a trigger sending a man to board ( machinist ), well we can use command CREW to detect this, and when machinist is board , train go to waypoint "X" . :hurray:
:typing: :insane:
Questions ? --------> DMS forum 8)
Do you like in yours mods, detect if one o some soldiers( ally or enemy ) enter inside a vehicle ?
Well , this is your command.
some examples :
{trigger "vehiculo_capt"
{condition
{type 1}
{term 1 "crew"
{"vehicle" "163"}
{"units"
{"actors/mids" 1}
}
}
{term 2 "crew"
{"vehicle" "163"}
{"units"
{"actors/mids" 2}
}
}
{term 3 "crew"
{"vehicle" "163"}
{"units"
{"actors/mids" 3}
}
}
{term 4 "crew"
{"vehicle" "163"}
{"units"
{"actors/mids" 4}
}
}
}
{actions
{"task"
{name "mis3"}
{state complete}
}
{"message"
{text "mission/b_12/vehiculo"}
}
{"event"
{event 3}
{mode set}
{delay 8}
}
}
}
In this trigger if any of the soldiers with mids 1,2,3 or 4 enter inside vehicle with mid 163 then is activate.
Other example :
{trigger "vehiculo_capt"
{condition
{term 1 "crew"
{"vehicle" "163"}
{"units"
{"actors/mids" 1 2 3 4}
}
}
}
{actions
{"task"
{name "mis3"}
{state complete}
}
{"message"
{text "mission/b_12/vehiculo"}
}
{"event"
{event 3}
{mode set}
{delay 8}
}
}
}
In this trigger vehicle mid 163 is a tank, and if all crew member mids 1,2,3 and 4 are inside tank then trigger is activated.
There are too much examples, and you can combine with other TERMS in one trigger.
Last example, imagine a Locomotive, we create a trigger sending a man to board ( machinist ), well we can use command CREW to detect this, and when machinist is board , train go to waypoint "X" . :hurray:
:typing: :insane:
Questions ? --------> DMS forum 8)