waldemarlima Posted May 26, 2016 Share Posted May 26, 2016 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") or something like this ..... 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 Quote Link to comment Share on other sites More sharing options...
reepblue Posted May 26, 2016 Share Posted May 26, 2016 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. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
waldemarlima Posted May 26, 2016 Author Share Posted May 26, 2016 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" ?? Quote Link to comment Share on other sites More sharing options...
reepblue Posted May 28, 2016 Share Posted May 28, 2016 Pivot* pivot = Pivot::Create(); pivot->SetScript("Scripts/MyCoolScript.lua"); Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Recommended Posts
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.