Data Realms Fan Forums http://45.55.195.193/ |
|
[Auto-Solved] How to change team of an actor? http://45.55.195.193/viewtopic.php?f=73&t=25235 |
Page 1 of 1 |
Author: | kiberkiller [ Fri Aug 19, 2011 6:18 pm ] |
Post subject: | [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? |
Author: | kiberkiller [ Fri Aug 19, 2011 6:35 pm ] |
Post subject: | Re: [Auto-Solved] How to change team of an actor? |
I figured out, apparently actor.Team = 1 is TOO obvious for me. |
Author: | Grif [ Fri Aug 19, 2011 8:52 pm ] |
Post subject: | 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. |
Author: | kiberkiller [ Sat Aug 20, 2011 1:21 pm ] |
Post subject: | 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. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |