Raised This Month: $ Target: $400
 0% 

Solved L4D2 - event with camera


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:35.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode