Thread: [Solved] L4D2 - event with camera
View Single Post
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 11-14-2021 , 10:00   Re: L4d2 - event with camera
Reply With Quote #3

You have to use a "point_viewcontrol_multiplayer" entity (or their relatives) then trigger it.

Example:

PHP Code:
add:
{
"origin" "10 20 30"
"angles" "0 -180 0"
"targetname" "camera_test"
"spawnflags" "1"
"interp_time" "1.0"
"fov_rate" "1.0"
"fov" "90"
"classname" "point_viewcontrol_multiplayer"
}

;
then to activate you have to trigger it like that
add
:
{
"targetname" "relay_camera_test"
"classname" "logic_relay"
"OnTrigger" "camera_test,Enable,,1.0,-1"
"OnTrigger" "camera_test,Disable,,7.0,-1"

You can test it in console with
PHP Code:
ent_fire camera_test Enable 
__________________

Last edited by Marttt; 11-14-2021 at 10:02.
Marttt is offline