View unanswered posts | View active topics It is currently Sun Aug 25, 2019 12:06 am



Reply to topic  [ 4 posts ] 
 [Auto-Solved] How to change team of an actor? 
Author Message
User avatar

Joined: Fri Aug 22, 2008 6:08 pm
Posts: 170
Reply with quote
Post [Auto-Solved] How to change team of an actor?
I'm trying to make a lua script that would switch actors in scene with another actor.
Like for example it will look for pre-placed "Soldier Light" and replace them with "Soldier Elite" from UniTec mod.

I got the script working except one thing, all new actors don't have a team assigned to them.
Is there a way to make them Team 2 on creation?


Fri Aug 19, 2011 6:18 pm
Profile
User avatar

Joined: Fri Aug 22, 2008 6:08 pm
Posts: 170
Reply with quote
Post Re: [Auto-Solved] How to change team of an actor?
I figured out, apparently actor.Team = 1 is TOO obvious for me.


Fri Aug 19, 2011 6:35 pm
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: [Auto-Solved] How to change team of an actor?
Also, you should set Team before actually creating the actor; changing actor's Teams after creation can have eventual side effects.


Fri Aug 19, 2011 8:52 pm
Profile
User avatar

Joined: Fri Aug 22, 2008 6:08 pm
Posts: 170
Reply with quote
Post Re: [Auto-Solved] How to change team of an actor?
Grif wrote:
Also, you should set Team before actually creating the actor; changing actor's Teams after creation can have eventual side effects.


Thanks for the information.
I wish there was better documentation for CC Lua, it wouldn't be so excruciating to learn it.


Sat Aug 20, 2011 1:21 pm
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.018s | 17 Queries | GZIP : Off ]