Data Realms Fan Forums
http://45.55.195.193/

How do I spawn another unit using another actor?
http://45.55.195.193/viewtopic.php?f=75&t=43196
Page 1 of 1

Author:  Izak12 [ Fri Dec 28, 2012 8:50 pm ]
Post subject:  How do I spawn another unit using another actor?

Quote:
Quote:
weegee wrote:
You can create some dummy AHuman actor which when created will spawn the train and then delete itself, that should be easy.



Ah, sorry I don't follow, so I create an AHuman Actor and then what? Should I just look at the code found in some mods like Xenobiology and simply modify what he did to create the plants that spawn from seeds?


I'm confused as to what he meant, do I create like a grenade or AHuman and then tell it to spawn another unit? Is that through .ini or .lua?

Author:  CaveCricket48 [ Fri Jan 04, 2013 8:36 am ]
Post subject:  Re: How do I spawn another unit using another actor?

Through Lua, is probably what he meant. Attaching a script to the dummy or whatever, which will spawn your train or whatever you need spawned.

Author:  Benpasko [ Sat Feb 09, 2013 10:00 am ]
Post subject:  Re: How do I spawn another unit using another actor?

You could also have an actor gib into what you want to spawn. I'm sure you could do hacky things with gib impulse limits to make an actor gib when they appear into what you want in the scene.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/