Hi
I am experiencing a problem in using Me:SetVelocity.
Ship scans the anomaly, makes a bookmark of anomaly, warps to it in certain range, then start aligning to safespot. It should set velocity of ship to certain percent from MaxVelocity but it doesn't.
Here is the script:
Where :
${Config.Coords.AlignText} is bookmark of SafeSpot which i am aligning to
${Config.Coords.AlignSpeedPCT} (varies between 1 -100) in evebotgui i can change this variable instead of getting into the script or change it dynamically in the script itself ( i even tried to give it directly to Me:SetVelocity ) but it seems like it ignores the variable and doesn't change the speed of alignment. This function is called just once yet in fight function of ratter it checks if ship should align or not, using ${Aligning} variable. Sometimes it doesn't ignore the AlignSpeedPCT, but i really can't see the reason when it is ignored. For example it works fine if i restart eve completely until first rewarp (e.g. neutral entering the Solar System) after that if i rerun evebot it still ignores that variable.
It aligns perfectly except the speed, so my ship always fly faster than NPC Battleships and get out of range.
What am i doing wrong?
Please help.
P.S: UI:UpdateConsole["Aligning to ${Config.Coords.AlignText} current speed set to : ${CoordSpeedPCT} %"] gives me corret result of ${CoordSpeedPCT} perfectly as well (returns the correct number)
I am experiencing a problem in using Me:SetVelocity.
Ship scans the anomaly, makes a bookmark of anomaly, warps to it in certain range, then start aligning to safespot. It should set velocity of ship to certain percent from MaxVelocity but it doesn't.
Here is the script:
Code:
if ${Entity["Cosmic Anomaly"].Distance} < ${Config.Coords.RangeToAlignFromCenterOfAnomaly}
{
if !${Aligning} {
Entity["${Config.Coords.AlignText}"]:Align
This.Aligning:Set[TRUE]
variable int CoordSpeedPCT = ${Config.Coords.AlignSpeedPCT}
Me:SetVelocity[${CoordSpeedPCT}]
UI:UpdateConsole["Aligning to ${Config.Coords.AlignText} current speed set to : ${CoordSpeedPCT} %"]
}
}
${Config.Coords.AlignText} is bookmark of SafeSpot which i am aligning to
${Config.Coords.AlignSpeedPCT} (varies between 1 -100) in evebotgui i can change this variable instead of getting into the script or change it dynamically in the script itself ( i even tried to give it directly to Me:SetVelocity ) but it seems like it ignores the variable and doesn't change the speed of alignment. This function is called just once yet in fight function of ratter it checks if ship should align or not, using ${Aligning} variable. Sometimes it doesn't ignore the AlignSpeedPCT, but i really can't see the reason when it is ignored. For example it works fine if i restart eve completely until first rewarp (e.g. neutral entering the Solar System) after that if i rerun evebot it still ignores that variable.
It aligns perfectly except the speed, so my ship always fly faster than NPC Battleships and get out of range.
What am i doing wrong?
Please help.
P.S: UI:UpdateConsole["Aligning to ${Config.Coords.AlignText} current speed set to : ${CoordSpeedPCT} %"] gives me corret result of ${CoordSpeedPCT} perfectly as well (returns the correct number)
Last edited by a moderator: