forked from Mirrors/openclonk
add function to set target to defense boom attack
parent
5d5cb709bc
commit
ce0bb331f7
|
@ -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 --*/
|
||||
|
||||
|
|
Loading…
Reference in New Issue