36 lines
764 B
Plaintext
36 lines
764 B
Plaintext
|
|
# File generated by Wizard 2.9.0 on Sep 23, 2025.
|
||
|
|
advanced_behavior behavior_wait
|
||
|
|
|
||
|
|
script_variables
|
||
|
|
WsfWeapon missile;
|
||
|
|
WsfControlMessage msg=WsfControlMessage();
|
||
|
|
string str="";
|
||
|
|
end_script_variables
|
||
|
|
|
||
|
|
on_init
|
||
|
|
|
||
|
|
end_on_init
|
||
|
|
|
||
|
|
on_message
|
||
|
|
type WSF_CONTROL_MESSAGE
|
||
|
|
script
|
||
|
|
WsfControlMessage msg=(WsfControlMessage)MESSAGE;
|
||
|
|
writeln("receive",msg.AuxDataString("task"));
|
||
|
|
str=msg.AuxDataString("tsak");
|
||
|
|
end_script
|
||
|
|
end_on_message
|
||
|
|
|
||
|
|
precondition
|
||
|
|
if(str=="WAIT")
|
||
|
|
{
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
return false;
|
||
|
|
end_precondition
|
||
|
|
|
||
|
|
execute
|
||
|
|
PLATFORM.GoToSpeed(0);#m/s
|
||
|
|
return Success();
|
||
|
|
end_execute
|
||
|
|
|
||
|
|
end_advanced_behavior
|