Jump to content

Add Load Lua Scripts in C++ version Official and Network Commands


waldemarlima
 Share

Recommended Posts

hi everyone ! I would suggest that added commands to C ++, I would can add scripts LUA in an entity whatever I define for a command, example> I created a simple box, I can link a script LUA in the box with a command like ( entity:loadScript (EntityID, "LUASCRIPTPATH")wink.png or something like this smile.png .....

 

and also like that added commands to connect to a server (TCP or UDP) and receive messages > string, integer and float and too send messages > string , integer and float.... would be very useful !

 

 

thanks by attention smile.png

Link to comment
Share on other sites

There is Entity->SetScript(string). I use it all the time, and the bulletdecal script uses it. You can also just make a "C++ Script" class too.

 

Networking isn't officially supported, but a lot of people got Multiplayer games to work.

Cyclone - Ultra Game System - Component PreprocessorTex2TGA - Darkness Awaits Template (Leadwerks)

If you like my work, consider supporting me on Patreon!

Link to comment
Share on other sites

thank you very much ^^

let me ask a question , how can i use this command : "Entity->SetScript(string)." ? because dont have in doumentation ...

 

can i link in exclusive entity ? example > link script called "myentityscript1.lua" with "myobjectbox.mdl" ??

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...