Jump to content
Sk1nK4iR3W4lK3r

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

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

Share this post


Link to post

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.

Share this post


Link to post

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" ??

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

×
×
  • Create New...