Data Realms Fan Forums http://45.55.195.193/ |
|
Addtogroup lua? http://45.55.195.193/viewtopic.php?f=75&t=45322 |
Page 1 of 1 |
Author: | Chiko [ Tue Jun 11, 2013 7:10 am ] |
Post subject: | Addtogroup lua? |
Hello. I have been making stuff for this game and one of those things is a crate. This particular crate works as a bomb but it will deploy instead of just going boom. Once deployed, it will damage any actor in range that doesn't have AddToGroup = DecayRes in them. So my request is. I would like to have a lua sample/help for a device that will make the actor carrying it immune to this damage. I would really appreciate help with this since my understanding of lua is a bit limited. |
Author: | CaveCricket48 [ Mon Jul 15, 2013 8:33 pm ] |
Post subject: | Re: Addtogroup lua? |
from Wiki wrote: HasObjectInGroup Shows whether this is or carries a specifically grouped object in its inventory. Also looks through the inventories of potential passengers, as applicable. Arguments: The name of the group to look for. Return value: Whetehr the object in the group was found carried by this. So you'd use that to check to see if an actor has an object that is in a specific group, like Code: ... if actor:HasObjectInGroup("Tools") then ... |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |