Flag Displayer

Started by KingofGamesYami, Aug 13, 2018, 01:25 am

Previous topic - Next topic


Reposted from here

This is a simple program to display a flag behind a player using particles.
pastebin get FSzi7xKP flag
There is a bit of setup involved. The program requires two APIs, commandsPlus and partTerm. In addition to those two, it reqiures a 49 x 13 image named '.flag' - I have an American Flag (cKBWFrTW).
When you start the program, be sure to stand within 10 blocks of the command computer, so that it may recognize you as the player activating the program. If other players are within that radius, ask them to leave or the program may be confused. Alternatively, edit the program at this line:
Code Select
local player = commandsPlus.getNearbyPlayers( "10 " )[1]
And add your name, eg:
Code Select
local player = "KingofGamesYami"
Thanks a ton to BB for his wonderful API partTerm and the assistance he has provided for me in using it.

Unfortunately, the nature of this program does not allow very good screenshots. This is the best I could do.
I'm a ComputerCraft veteran with over 3k posts on the old ComputerCraft Forum.  I'm mostly inactive in CC having moved on to bigger, more interesting projects but still contribute to the community.