Jump to content

Home

Some scripting stuff


lukeskywalker1

Recommended Posts

I have a few basic questions, that I *should* know the answere to, but find myself not knowing :-\

 

I always assumed you could put 'Usescript' in a func_breakable (you know, so I could break something and it triggers a script...) for example, I cut a beam down (the func_breakable) which then runs the script that tells part of the ceiling to fall down. Basically, I want to know how to break something, then trigger a script.

 

Also, could some one explain camera groups? It makes a camera follow an entity right? Like if I want Kyle to run down a hallway, the camera would follow him right? I want to set something like that up.

 

Thanks!

Link to comment
Share on other sites

Well, did you assume right? Does the script launch? If it didn't, then just target the func_breakable to a scriptrunner. What's the difference, really...

 

Use camera_groups by affecting something, either NPC or entity, and use the command set_camera_group("cameragroupname"). Notice that the camera_group_name has nothing to do with any targetnames you set in Radiant. It's just scripting. After this, you can use the follow camera command to follow any set camera group.

 

Camera group follow doesn't move the camera, it only sets the PAN to the entity, and if the entity moves, it follows by updating the PAN. Quite logically, if you set the follow camera command, and you move the camera, the camera will stay centered on the target. That's just as useful as the stationary camera and moving target.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...