View unanswered posts | View active topics It is currently Sat Apr 27, 2024 7:48 am



Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
 "Conveyor zone" 
Author Message
User avatar

Joined: Sun Nov 11, 2007 1:49 pm
Posts: 785
Reply with quote
Post Re: "Conveyor zone"
geforz wrote:
You should also add the corresponding "end" for "if actor.Team == 1 then" ;)


I'm sorry but can't you do it for me, because I have no idea where to place it.


Sun May 17, 2009 10:39 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: "Conveyor zone"
Code:
function Update(self)
   for actor in MovableMan.Actors do
      if actor.Team == 1 then
         if (actor.Pos.X >= self.Pos.X - 80) and (actor.Pos.X <= self.Pos.X + 80) and (actor.Pos.Y >= self.Pos.Y - 10) and (actor.Pos.Y <= self.Pos.Y + 10) and (actor.PinStrength <= 0) then
            actor.Health = 0;
         end
      end
   end
end


Every logical statement HAS to end with an end.


Sun May 17, 2009 10:49 am
Profile
User avatar

Joined: Sun Nov 11, 2007 1:49 pm
Posts: 785
Reply with quote
Post Re: "Conveyor zone"
Golly! It works!
I can't thank you guys enough, especially Grif. :grin:

Also now that it works I can tell you what it is, it's a hangar where green can't enter.
I used the disguise kit inside the hangar and jetpacked out of it, I forgot that I was on the green team, so my character died. :lol:


Sun May 17, 2009 11:16 am
Profile
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post Re: "Conveyor zone"
Why not just invert the velocity of green units?


Sun May 17, 2009 6:14 pm
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: "Conveyor zone"
Invert and MULTIPLY.


Sun May 17, 2009 7:14 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 20 posts ]  Go to page Previous  1, 2

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.644s | 15 Queries | GZIP : Off ]