PrivateDwelling
08-10-2007, 17:49
I'm having a problem with a trigger. Sometimes the truck in question (MID 885) is not accessible, sometimes it is, when MID 57 enters the zone. BTW, the zone is quite large, so I don't think that is the problem. Any ideas? Code as follows:
{trigger "zis5able"
{condition
{term 1 "actors"
{selector
{"actors/mids" 57}
{"actors/type" human}
{"actors/zone" "truck2"}
{"actors/state" "not dead"}
}
{"limits/>=" 1}
}
}
{actions
{"ables"
{selector
{"actors/mids" 885}
}
{remove "select"}
}
}
}
{trigger "zis5disable"
{condition
{term 1 "actors"
{selector
{"actors/mids" 57}
{"actors/type" human}
{"actors/zone" "truck2"}
{"actors/state" "not dead"}
}
{"limits/>=" 1}
}
}
{actions
{"ables"
{selector
{"actors/mids" 885}
}
{add "select"}
}
}
}
{trigger "zis5message"
{condition
{term 1 "actors"
{selector
{"actors/mids" 885}
{"actors/zone" "truck"}
{"actors/type" vehicle}
}
{"limits/>=" 1}
}
}
{actions
{"message"
{text "Hah! Our gunners have come through our secret tunnel. Lesin must go and order the gunners to load the mortars."}
}
}
}
{trigger "zis5able"
{condition
{term 1 "actors"
{selector
{"actors/mids" 57}
{"actors/type" human}
{"actors/zone" "truck2"}
{"actors/state" "not dead"}
}
{"limits/>=" 1}
}
}
{actions
{"ables"
{selector
{"actors/mids" 885}
}
{remove "select"}
}
}
}
{trigger "zis5disable"
{condition
{term 1 "actors"
{selector
{"actors/mids" 57}
{"actors/type" human}
{"actors/zone" "truck2"}
{"actors/state" "not dead"}
}
{"limits/>=" 1}
}
}
{actions
{"ables"
{selector
{"actors/mids" 885}
}
{add "select"}
}
}
}
{trigger "zis5message"
{condition
{term 1 "actors"
{selector
{"actors/mids" 885}
{"actors/zone" "truck"}
{"actors/type" vehicle}
}
{"limits/>=" 1}
}
}
{actions
{"message"
{text "Hah! Our gunners have come through our secret tunnel. Lesin must go and order the gunners to load the mortars."}
}
}
}