加入火力打击无人机
This commit is contained in:
36
behavior/UCAV_wait.txt
Normal file
36
behavior/UCAV_wait.txt
Normal file
@@ -0,0 +1,36 @@
|
||||
# File generated by Wizard 2.9.0 on Oct 9, 2025.
|
||||
advanced_behavior UCAV_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("task");
|
||||
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
|
||||
Reference in New Issue
Block a user