Spawn command

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Spawn command

Post 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
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

All correct - and yes, you can set spawnflags. 8)

I don't think there are many tutorials about this though :?
Image
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

!!!

Post 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:
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Spawning pathnodes crashes the game :cry:
Image
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

:(

Post 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?
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Yes. :wink:
Image
Post Reply