View unanswered posts | View active topics It is currently Mon Dec 17, 2018 1:44 am



Reply to topic  [ 6 posts ] 
 Script for Spawning Actors? 
Author Message
User avatar

Joined: Sun Dec 25, 2011 7:23 am
Posts: 269
Reply with quote
Post Script for Spawning Actors?
I've looked at some of the actor spawning mods such as the nano assembler factory as well as in game actor spawners such as the zombie spawning devices, but I can't seem to make my own actor spawning device.
The basic code I have for now is this:
Code:
function Update(self)
   local spawnactor = CreateAHuman("Soldier Heavy")

   spawnactor.Pos = self.Pos
   MovableMan:AddActor(spawnactor);
end


Is there something wrong with the code I'm using to spawn actors?


Sun Mar 04, 2012 2:52 am
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 10486
Location: Here
Reply with quote
Post Re: Script for Spawning Actors?
Looks like it should work to me, but there isn't any team or AI definition for the actors.


Mon Mar 05, 2012 1:39 am
Profile
User avatar

Joined: Wed Jan 25, 2012 4:20 pm
Posts: 38
Reply with quote
Post Re: Script for Spawning Actors?
You should look at Grif's ABomb stuff for an idea.


Tue Mar 06, 2012 1:15 am
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 10486
Location: Here
Reply with quote
Post Re: Script for Spawning Actors?
If I recall correctly, Grif's ABomb does not use lua.


Wed Mar 07, 2012 5:45 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Script for Spawning Actors?
this is correct

so I would recommend not taking a look at it, actually


Sat Apr 28, 2012 2:24 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: Script for Spawning Actors?
Also, that would create actors indefinately and very quickly.

You should put some ifs in there.


Sat Apr 28, 2012 4:48 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.016s | 13 Queries | GZIP : Off ]