shnicklefritz Posted February 23, 2018 Share Posted February 23, 2018 This script works fine when I test it in the ME "fly mission" and in my own server however, when in multiplayer it works once then never again. Can anyone help? Thank you in advance. onEngineStart = {} function onEngineStart:onEvent(event) if world.event.S_EVENT_ENGINE_STARTUP == event.id and event.initiator:getPlayerName() ~= nil then local playerGroup = event.initiator:getGroup() local playerUnit = playerGroup:getUnit(1) local playerName = playerUnit:getPlayerName() local playerSide = playerGroup:getCoalition() local playerID = playerGroup:getID() local playerAircraft = playerUnit:getTypeName() local playerCallsign = playerUnit:getCallsign() local operationName = "Operation " local playerMessage = "I see you have started your " local playerMessage2 = "Please visit 'Mission Objectives' under the F10 menu for information regarding current objectives and tasks before taking off." local playerMessage3 = "\n\nGood luck, Sir!" trigger.action.outTextForGroup(playerID, operationName .. "\n\n" .. "Welcome " .. playerName .. ", Sir!" .. "\n\n" .. playerMessage .. playerAircraft .. ". " .. playerMessage2 .. playerMessage3 .. "\n\n" .. "Your callsign is " .. playerCallsign, 30) trigger.action.outSoundForGroup(playerID, "l10n/DEFAULT/OnEngineStart.ogg" ) end end Link to comment Share on other sites More sharing options...
Recommended Posts