Data Realms Fan Forums http://45.55.195.193/ |
|
Making specific zone actions http://45.55.195.193/viewtopic.php?f=73&t=12071 |
Page 1 of 1 |
Author: | whitty [ Sun Aug 24, 2008 11:46 pm ] |
Post subject: | Making specific zone actions |
How would i make it so that if an actor went into a zone I made, it gibbed? |
Author: | Grif [ Mon Aug 25, 2008 12:02 am ] |
Post subject: | Re: Making specific zone actions |
Well do you want the short answer or the long answer? Short answer: name the area "Kill Zone". Long answer: Make a scene, give it a custom lua file, set up a lua script for that zone, make the zone work with the lua script. Attached is an .rte that offers a template of an area, how to set up a lua script to run with the scene, and how to make a "zone" do things. I won't just give you how to make it gib things, though. Figure that one out yourself. The Quick Console Commands thread is a great resource. |
Author: | whitty [ Mon Aug 25, 2008 12:04 am ] |
Post subject: | Re: Making specific zone actions |
Thanks a ton! *edit* Ok, naming it Kill Zone doesn't work for me (they don't gib). Is there anything wrong with the code? Code: AddArea = Area AddBox = Box Corner = Vector X = 3046 Y = 797 Width = 159 Height = 65 Name = Kill Zone |
Author: | Grif [ Mon Aug 25, 2008 1:12 am ] |
Post subject: | Re: Making specific zone actions |
Oh, I forgot. Kill zone is commented out of Maginot.Lua by default. You can look in there (at the bottom), take the code, and put it into your own .rte's .Lua file. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |