Comms Issues
So even though Ive done a tonnes of scripting, because it was for LARP I didnt both learning how to do comms stuff.
I've used some of the examples and happily got comms going with space stations and the triggers to do it. But can figure out how to do ships.
the state is "ready" and can't see anything else effecting it. Ive tried it as a friendly and neutral faction.....
Any thoughts to what Im missing.
if isAllowedTo(askforCargoShip) then
addCommsReply("Standby to be boarded.", function()
setCommsMessage(string.format("Dammit they found us make a run for it."))
askforCargoShip = "complete"
addCommsReply("Back", commsStation)
end)
addCommsReply("Nothing today, just checking in.", function()
setCommsMessage(string.format("Ok Officer, we are just conducting some repairs on our engines, sorry about that."))
askforCargoShip = "complete"
addCommsReply("Back", commsStation)
end)
end
I've used some of the examples and happily got comms going with space stations and the triggers to do it. But can figure out how to do ships.
the state is "ready" and can't see anything else effecting it. Ive tried it as a friendly and neutral faction.....
Any thoughts to what Im missing.
if isAllowedTo(askforCargoShip) then
addCommsReply("Standby to be boarded.", function()
setCommsMessage(string.format("Dammit they found us make a run for it."))
askforCargoShip = "complete"
addCommsReply("Back", commsStation)
end)
addCommsReply("Nothing today, just checking in.", function()
setCommsMessage(string.format("Ok Officer, we are just conducting some repairs on our engines, sorry about that."))
askforCargoShip = "complete"
addCommsReply("Back", commsStation)
end)
end
Comments
Make sure you set your created ships to use your comms script (internal function or external script).
Take a look at Defender Hunter (search for "function commsShip()" and/or "function neutralComms(comms_data)"). It's got custom comms for ships (and stations). Without full context, I'm having difficulty pinpointing what you might have missed. Nothing jumps out at me from what you've posted.