Data Realms Fan Forums http://45.55.195.193/ |
|
Script: Teleporter script fix [Request fulfilled] http://45.55.195.193/viewtopic.php?f=73&t=25443 |
Page 1 of 1 |
Author: | Gotcha! [ Wed Sep 07, 2011 5:02 pm ] |
Post subject: | 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 |
Author: | Mehman [ Wed Sep 07, 2011 5:14 pm ] |
Post subject: | 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). |
Author: | Gotcha! [ Wed Sep 07, 2011 5:19 pm ] |
Post subject: | 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. |
Author: | Mehman [ Wed Sep 07, 2011 6:09 pm ] |
Post subject: | Re: Script: Teleporter script fix [Request fulfilled] |
Can't you animate the actor's sprite? |
Author: | Gotcha! [ Wed Sep 07, 2011 6:11 pm ] |
Post subject: | 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. |
Author: | Grif [ Wed Sep 07, 2011 6:49 pm ] |
Post subject: | 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. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |