Quantcast
Channel: Homeworld Mods and Modding - The Official Gearbox Software Forums
Viewing all articles
Browse latest Browse all 663

How to format Lua on this forum

$
0
0

@Dom2 wrote:

I just found something extremely useful that will make pasted lua code much more readable on this forum:

i=1
print("hello"..i)
if (Player_IsAlive(playerIndex) == 1 and Player_HasShipWithBuildQueue(playerIndex) == 0) then
		Player_Kill(playerIndex)
		if playerIndex ~= Universe_CurrentPlayer() then
				local playerNameW = Player_GetName(playerIndex)
				Sound_SpeechPlay("data:sound\\speech\\missions\\m_15\\47100")
				Player_AddLocalChatMessage("$1231", playerNameW);
		end
end

This is done using

```lua
[Your code]
```

Posts: 5

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 663

Latest Images

Trending Articles



Latest Images