View unanswered posts | View active topics It is currently Fri Dec 27, 2024 8:26 am



Reply to topic  [ 2 posts ] 
 Is there a easier way to do this? 
Author Message

Joined: Sat Oct 17, 2009 10:40 pm
Posts: 4
Reply with quote
Post Is there a easier way to do this?
So I've been a forums lurker for the past few... years, and after the last build, I noticed that one of the new "innovations" was the ability to shoot through allies. Anyways, one of my old favorite "gameplay modes", was to put a bunch of actors around a map, and play sandbox with them, at my own pace. Obviously, not being able to shoot my own players pretty much doesn't let me do this.

(Basically, I would set up a little base full of actors and "infiltrate" my own base with superactors or such and make up little stories in my head, like a literal sandbox.)

So I've heard that there's a new code to activate this in actors, and I've recently forgotten it. But regardless of what it is, is it possible to "bulk-deactivate" this feature from the game? It would be prrreettyyy ace if I could. :wink:

(Could someone at the very least tell me the code so that I could manually do it?)


Fri Aug 10, 2012 9:02 pm
Profile

Joined: Sat Oct 22, 2011 8:07 pm
Posts: 149
Reply with quote
Post Re: Is there a easier way to do this?
What you're looking for is the IgnoresTeamHits attribute of MOs, you'd have to set that to False (0).
This piece of code should work, though I haven't tested it:
Code:
function Update(self)
            for i = 1, MovableMan:GetMOIDCount()-1 do
                        local mo = ToMovableObject(MovableMan:GetMOFromID(i));
                                    mo.IgnoresTeamHits = 0;
                        end
            end
end

What it does is that when it is attached to an MO it enables friendly fire for every MO on the scene.


Mon Aug 13, 2012 7:45 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 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.064s | 13 Queries | GZIP : Off ]