Resource icon

change sky_camera script V1

  • Hey you! Yes, you! Add images to your downloads, it's free! Use the orange "Manage Download Image" button in the top right.

change sky_camera script V1

for when having only one sky_camera is not enough

A script for changing the sky_camera that a player sees

How to use:

Download change_sky_camera.nut and put it in tf/scripts/vscripts

Then in Hammer add a logic_script with the name of the .nut file as the Entity Scripts keyvalue (dont forget to give the logic_script a targetname)

Next give all sky_cameras a unique name (by default sky_cameras dont have a name keyvalue so you have to add it with smartedit off)

To call the scripts functions you do **name of logic_script** || Runscriptcode || **name of function**(parameters)


The functions are:

setskycamera(`targetname of the sky_camera`,player (use activator if you are using a trigger)) sets the sky_camera of a specific player
setdefaultcamera(`targetname of the sky camera`) sets the sky camera of everyone and everyone who joins after


please report any bugs
License
Credit is required. Permission to modify required.
Author
gidi30
Downloads
81
Views
318
First release
Last update
Category
VScript

More downloads from gidi30