View unanswered posts | View active topics It is currently Fri Nov 22, 2019 9:02 am



Reply to topic  [ 4 posts ] 
 Making specific zone actions 
Author Message
User avatar

Joined: Sat Jun 16, 2007 2:31 am
Posts: 2981
Location: Texas
Reply with quote
Post Making specific zone actions
How would i make it so that if an actor went into a zone I made, it gibbed?


Sun Aug 24, 2008 11:46 pm
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post 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.


Mon Aug 25, 2008 12:02 am
Profile
User avatar

Joined: Sat Jun 16, 2007 2:31 am
Posts: 2981
Location: Texas
Reply with quote
Post Re: Making specific zone actions
Thanks a ton! :D

*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


Mon Aug 25, 2008 12:04 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post 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.


Mon Aug 25, 2008 1:12 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.017s | 13 Queries | GZIP : Off ]