Zelly Posted November 29, 2013 Share Posted November 29, 2013 Hello would it be possible to spawn an entity with the et.G_Spawn() that other players could see and possibly interact with(for example an item_health)? - Maybe a simple example if so.Or is that not what it is to be used for?Kind of just learning what possibilitys I have access to with lua then work from there.Thanks in advance Quote Link to comment Share on other sites More sharing options...
Micha! Posted January 29, 2014 Share Posted January 29, 2014 It's possible to remove stuff from map so maybe it is possible to add it -------//--------------------remove map objects---------------------------- for i = 64, 1021 do if et.gentity_get(i, "classname") == "misc_mg42" or et.gentity_get(i, "classname") == "team_CTF_redflag" or et.gentity_get(i, "classname") == "team_CTF_blueflag" then et.trap_UnlinkEntity( i ) endif et.gentity_get(i, "classname") == "trigger_ammo" or et.gentity_get(i, "classname") == "trigger_heal" then --cabinets et.trap_UnlinkEntity( i ) end end Quote Link to comment Share on other sites More sharing options...
Zelly Posted January 29, 2014 Author Share Posted January 29, 2014 I managed to spawn a medpack via command, after copying entity values of a medpack I dropped. However it does not heal, So I got stuck. Quote 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.