hi everybody, I'm a new french coder (so, be cool with my poor english ) and i've just install Infiltration ; the maps are very beautiful and I try to use Infiltration Lite with my own MOD (a last team Standing currently in Development) but I have so problem on INF-ManorFarm: I can't open any door whereas all bots can do it!.
I try to modify my mod to do this:
function bool IsRelevant(actor Other)
{
...
local Trigger closedDoor;
// open doors
if (Other.IsA('Trigger'))
{
closedDoor=Trigger(Other);
if (Trigger(Other).TriggerType!=TT_PawnProximity &&
Trigger(Other).TriggerType!=TT_PlayerProximity)
{
log("CLTS:found closed doorpen it!");
closedDoor.TriggerType=TT_AnyProximity;
}
if (closedDoor.bInitiallyActive==false)
closedDoor.bInitiallyActive=true;
}
but this code doesn't work . Help Me please!
I try to modify my mod to do this:
function bool IsRelevant(actor Other)
{
...
local Trigger closedDoor;
// open doors
if (Other.IsA('Trigger'))
{
closedDoor=Trigger(Other);
if (Trigger(Other).TriggerType!=TT_PawnProximity &&
Trigger(Other).TriggerType!=TT_PlayerProximity)
{
log("CLTS:found closed doorpen it!");
closedDoor.TriggerType=TT_AnyProximity;
}
if (closedDoor.bInitiallyActive==false)
closedDoor.bInitiallyActive=true;
}
but this code doesn't work . Help Me please!