Page 1 of 1

Spawn command

Posted: Sun Mar 09, 2003 6:04 pm
by Rookie One.pl
Hi,

What spawn command can do? I was looking at some scripts and sorted out something like this:

local.something = spawn <model or classname>
local.something.origin = <origin>
local.something.angle = <angle>

Am I right? Can I spawn triggers using this method? Can I set spawnflags using it? Or are there any tutorials about it?

Thanks in advance,

Rookie One

Posted: Sun Mar 09, 2003 6:49 pm
by jv_map
All correct - and yes, you can set spawnflags. 8)

I don't think there are many tutorials about this though :?

!!!

Posted: Sun Mar 09, 2003 7:16 pm
by Rookie One.pl
Hey! If it's all correct, with little modifications of your bot scripts you can include bots in orignal maps with the scripting!!! Just spawn pathnodes, triggers and script_objects!!! Just imagine!!! Hunt the bots on The Hunt :twisted: :twisted: :twisted:

Posted: Sun Mar 09, 2003 7:45 pm
by jv_map
Spawning pathnodes crashes the game :cry:

:(

Posted: Mon Mar 10, 2003 12:38 pm
by Rookie One.pl
That's a pity :cry:

One more question: if I'd spawn that local.something and do this:

Code: Select all

local.something.targetname = "something"
Would I be able to access that thing by $something?

Posted: Mon Mar 10, 2003 4:13 pm
by jv_map
Yes. :wink: