View Single Post
ZBzibing
Senior Member
Join Date: Dec 2012
Old 10-13-2022 , 14:19   Re: Stripper:Source (Updated 2011-04-15)
Reply With Quote #1814

Quote:
Originally Posted by finishlast View Post
Hi,

how to spawn an entity on a certain event.
Let's say spawn a gnome when the elevator reached the botton.

In the obove case the gnome is always there, is there a way to only create it when the elevator reached the bottom?
Code:
modify:
{
	match:
    {
   "model" "*39"
    }
	insert:
	{
	"OnPressed" "ZB_T,SpawnZombie,Tank Tank,50,1"
	}
}
//特感出生位置
add:
{
"origin" "13436 15218 475"
"targetname" "ZB_T"
"classname" "commentary_zombie_spawner"
}
This is the tank I generated in the elevator. I wonder if it will enlighten you
__________________
Please forgive, If I'm not describing it accurately. I use google translate
Functional tests are all from L4D1, and are only keen to solve and fix various bugs of L4D1:
ZBzibing is offline