Limelight Forums

Full Version: Interactive Screen - Guide
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Interactive Screen - Documentation

The interactive screen entity allows you to render a website of your choice on 3D2D panels that players can interact with using the buttons below the screen. The entity opens up a wide range of new opportunities such as casino machines or live news feeds.

Settings Panel:
The settings panel can be opened by the entity owner by pressing your USE button while looking at the webpage of the screen. Here you can set the URL to show and customize the buttons below the webpage.

URL Field: This is where you will enter the URL of the webpage that you want to show. It also allows you to enter up to 5 different tags which will be replaced with corresponding information when the webpage is loaded.

Key Field: Here you can enter a key which can be used if you want to be the only one who can access your own webpage. It will be hashed using a CRC Checksum and sent to all clients. You can later validate the CRC Checksum using PHP. (Choose a key you won't use anywhere else)

Edit Button Panel:
By clicking on a button in the list you can open up the edit button panel where you can customize the button and set it to do what you want to.

Name Field: This is the text that will be shown on the button below the webpage.

Action Type: Here you can set what you want the button to do. Currently, you can make it open an URL or call a Javascript code snippet.

Action Value:
 Here you will set the value of what you want the button to do. If you have selected Open URL you should enter a URL here and if you have selected Run Javascript you should enter a Javascript code snippet here.

[font=Arial]GET Variables:
[/font]

    IMPORTANT: Use these with care as they easily could be manipulated by a normal web browser.

    Read more about GET Variables here.

     Variables:
  • %STEAMID64 = The player's SteamID64.
  • %CRCKEY = The key hashed using a CRC Checksum that can be used if you don't want anyone else to use your website on their interactive screens. (Read more about CRC Checksum)
  • %USERNAME = Username of the player.
  • %OS = The operating system of the player. (Can be: Windows, Linux, OSX, Unknown)
  • %COUNTRY = The country code of the player. (UK, US, etc)


Other Functionalities:

TakeDamage(int damageAmount): This function can be created in a javascript and will be called automatically when the screen receives damage from a weapon.
where is the screen
(Jul 29, 2018, 07:51 PM)greg Wrote: [ -> ]where is the screen

It will be available on the market under the Misc tab the next server restart!  Thumbs Up
(Jul 29, 2018, 08:01 PM)Jompe Wrote: [ -> ]
(Jul 29, 2018, 07:51 PM)greg Wrote: [ -> ]where is the screen

It will be available on the market under the Misc tab the next server restart!  Thumbs Up

or server crash  Wink
Looks like this is going to open up loads of opportunities!
Noice!
Here's a guide within a guide?

 --------------------

How to play YouTube videos with playback control buttons

(warning: it's all client side i think, so pressing pause will only pause your playback etc - maybe i'll try to make one with the video sync sites)

You'll need to host a HTML page somewhere, maybe here: https://www.singlehtml.com/

Take this HTML and host it: https://github.com/zzHAMZAzz/zzHAMZAzz.g...creen.html

Change the YouTube embed URL where it says "ENTERVIDEOID" and enter the ID of the video you want to play

----------

Go to the interactive sign and change the URL to wherever you hosted the HTML page

Add 4 buttons (or 2 or 3)

Button 1: call it play - make it do a JS command of player.playVideo()
Button 2: call it pause - make it do a JS command of player.pauseVideo()
Button 3: call it mute - make it do a JS command of player.mute()
Button 4: call it unmute - make it do a JS command of player.unMute()


Done???

[Image: ?interpolation=lanczos-none&output-forma...olor=black]
(Jul 29, 2018, 11:36 PM)H4MZ4 Wrote: [ -> ]Here's a guide within a guide?

 --------------------

How to play YouTube videos with playback control buttons

(warning: it's all client side i think, so pressing pause will only pause your playback etc - maybe i'll try to make one with the video sync sites)

You'll need to host a HTML page somewhere, maybe here: https://www.singlehtml.com/

Take this HTML and host it: https://github.com/zzHAMZAzz/zzHAMZAzz.g...creen.html

Change the YouTube embed URL where it says "ENTERVIDEOID" and enter the ID of the video you want to play

----------

Go to the interactive sign and change the URL to wherever you hosted the HTML page

Add 4 buttons (or 2 or 3)

Button 1: call it play - make it do a JS command of player.playVideo()
Button 2: call it pause - make it do a JS command of player.pauseVideo()
Button 3: call it mute - make it do a JS command of player.mute()
Button 4: call it unmute - make it do a JS command of player.unMute()


Done???

[Image: ?interpolation=lanczos-none&output-forma...olor=black]

That hosting website is not working anymore.
(Aug 28, 2018, 08:57 PM)Markus Wrote: [ -> ]
(Jul 29, 2018, 11:36 PM)H4MZ4 Wrote: [ -> ]Here's a guide within a guide?

 --------------------

How to play YouTube videos with playback control buttons

(warning: it's all client side i think, so pressing pause will only pause your playback etc - maybe i'll try to make one with the video sync sites)

You'll need to host a HTML page somewhere, maybe here: https://www.singlehtml.com/

Take this HTML and host it: https://github.com/zzHAMZAzz/zzHAMZAzz.g...creen.html

Change the YouTube embed URL where it says "ENTERVIDEOID" and enter the ID of the video you want to play

----------

Go to the interactive sign and change the URL to wherever you hosted the HTML page

Add 4 buttons (or 2 or 3)

Button 1: call it play - make it do a JS command of player.playVideo()
Button 2: call it pause - make it do a JS command of player.pauseVideo()
Button 3: call it mute - make it do a JS command of player.mute()
Button 4: call it unmute - make it do a JS command of player.unMute()


Done???

[Image: ?interpolation=lanczos-none&output-forma...olor=black]

That hosting website is not working anymore.

Here is a list of known sites that allow you to host single HTML files.