add function to set target to defense boom attack

install-platforms
Maikel de Vries 2017-06-24 17:58:01 +02:00
parent 5d5cb709bc
commit ce0bb331f7
1 changed files with 15 additions and 2 deletions

View File

@ -173,11 +173,16 @@ local FxFlight = new Effect
SetWaypoints = func(array waypoints)
{
this.waypoints = waypoints;
}
},
SetTarget = func(object target)
{
this.target = target;
}
};
/*-- Waypoints --*/
/*-- Waypoints & Target --*/
public func AddWaypoint(proplist waypoint)
{
@ -195,6 +200,14 @@ public func SetWaypoints(array waypoints)
return;
}
public func SetTarget(object target)
{
var fx = GetEffect("FxFlight", this);
if (fx)
fx->SetTarget(target);
return;
}
/*-- Riding --*/