View unanswered posts | View active topics It is currently Thu Dec 26, 2024 5:19 pm



Reply to topic  [ 6 posts ] 
 Script: Teleporter script fix [Request fulfilled] 
Author Message
User avatar

Joined: Tue Apr 01, 2008 4:49 pm
Posts: 1972
Location: The Netherlands
Reply with quote
Post Script: Teleporter script fix [Request fulfilled]
Helloes,

The script below, originally created by Lafe, makes sure that the contents of a gibbed ACRocket go to the "UniTec Teleport Pad", which is an actor as you can see.
My question is: Can the actor be modified into a MOSRotating?

Code:
function Create(self)
   for actor in MovableMan.Actors do
       if actor.Team == self.Team and actor.PresetName == "UniTec Teleport Pad" then
         self.Pos = actor.Pos
         self:GibThis()
end
   end
      end
function Destroy(self)
   ActivityMan:GetActivity():ReportDeath(self.Team, -1);
end


Last edited by Gotcha! on Wed Sep 07, 2011 5:19 pm, edited 1 time in total.



Wed Sep 07, 2011 5:02 pm
Profile
User avatar

Joined: Tue Nov 17, 2009 7:38 pm
Posts: 909
Location: France
Reply with quote
Post Re: Script: Teleporter script fix
Yes it can, you'd have to replace MovableMan.Actors by MovableMan.Items or MovableMan.Particles, I don't remember which one. The team recognition may be lost however, in that case you'd have to script the teleport pad to have a specific Mass or Sharpness or PresetName that will allow you to identify its team (for example team 0 will have a mass of 1250, team 1 1251,...etc).


Wed Sep 07, 2011 5:14 pm
Profile
User avatar

Joined: Tue Apr 01, 2008 4:49 pm
Posts: 1972
Location: The Netherlands
Reply with quote
Post Re: Script: Teleporter script fix
Ouch. Thanks. You know what, I'll, uhh, leave it the way it was. It can do without sprite animation. :oops:


Wed Sep 07, 2011 5:19 pm
Profile
User avatar

Joined: Tue Nov 17, 2009 7:38 pm
Posts: 909
Location: France
Reply with quote
Post Re: Script: Teleporter script fix [Request fulfilled]
Can't you animate the actor's sprite?


Wed Sep 07, 2011 6:09 pm
Profile
User avatar

Joined: Tue Apr 01, 2008 4:49 pm
Posts: 1972
Location: The Netherlands
Reply with quote
Post Re: Script: Teleporter script fix [Request fulfilled]
Yes, I can, but the other actors will spawn behind this actor, which is unwanted. :) If you know what I mean.


Wed Sep 07, 2011 6:11 pm
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Script: Teleporter script fix [Request fulfilled]
Keep using an actor for easy team assignment, but remove its sprite and have it run a lua script that updates an MOSRotating to shadow it and act as the sprite for it.


Wed Sep 07, 2011 6:49 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 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.102s | 14 Queries | GZIP : Off ]