Ok, I got some trouble here with my expression.
I use this code to find an entity I say in chat:
Code:
@name target ent chat
@outputs Target:entity
@persist Targ Strings:string
runOnTick(1)
if ((lastSpoke()==owner())&(lastSaid() =="!target_on")) {Targ = 1}
if ((lastSpoke()==owner())&(lastSaid() =="!target_off")) {Targ = 0}
if ((Targ == 1)&(owner():lastSaid()!="!target_on")|(owner():lastSaid()!="!target_off"))
{
Strings=(owner():lastSaid())
Target=(findPlayerByName(Strings))
} This must be wrong, because the object just fly to a blank spot.
If needed, in case this is correct, I will post the code I use to move towards the target, but I think the problem is inside this expression.
Bookmarks