View Single Post
finishlast
Senior Member
Join Date: Nov 2018
Location: In Reno with the vitamin D.
Old 07-17-2022 , 13:49   Re: Stripper:Source (Updated 2011-04-15)
Reply With Quote #1806

Hi,

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

PHP Code:
{
"model" "*3"
"top" "-160 -192 252"
"targetname" "elevator"
"speed" "25"
"rendermode" "0"
"renderfx" "0"
"rendercolor" "255 255 255"
"renderamt" "255"
"origin" "-160 -192 252"
"mingpulevel" "0"
"mincpulevel" "0"
"maxgpulevel" "0"
"maxcpulevel" "0"
"fadescale" "1"
"fademindist" "-1"
"fademaxdist" "0"
"disablereceiveshadows" "0"
"bottom" "-160 -192 4"
"blockdamage" "0"
"acceleration" "100"
"classname" "func_elevator"
"hammerid" "12182"
"OnReachedTop" "elevator_top_sound,PlaySound,,0,-1"
"OnReachedBottom" "elevator_bottom_sound,PlaySound,,0,-1"
"OnReachedBottom" "elevator_move_sound,StopSound,,0,-1"
"OnReachedBottom" "gnomivator,ForceSpawn,,0,-1"
"OnReachedTop" "elevator_move_sound,StopSound,,0,-1"
}

{
"classname" "prop_physics_override"
"solid" "6"
"origin" "-84 -127 900"
"angles" "0 0 0"
"spawnflags" "0"
"targetname" "gnomivator"
"model" "models/props_junk/gnome.mdl"
"disableshadows" "1"

In the obove case the gnome is always there, is there a way to only create it when the elevator reached the bottom?
__________________
finishlast is offline