Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
NightFallKiller

Continuously changing cameras

Recommended Posts

Hello everyone.

I've been wondering how to make it so when it's showing a camera (by going up to something and using it) i can make it so if the player presses use once more it shows another camera, I haven't been able to figure this out, so if someone could please explain, that would be great.

*I'm mapping using Doombuilder, Zdoom in UDMF format if you need to know*

Share this post


Link to post

NightFallKiller said:

...Zdoom in UDMF format...
________________________________________________________________________


I luv that Format, But I still like using Zdoom in Hexen

Share this post


Link to post

NightFallKiller said:

...Zdoom in UDMF format...
________________________________________________________________________
Demon101:

I luv that Format, But I still like using Zdoom in Hexen [/B][/quote]________________________________________________________________________
Demon101:

Oh Right... continuosly changing cameras... Sorry. Cant help you with that, Hardly use cameras.

Share this post


Link to post
Guest DILDOMASTER666
Demon101 said:

NightFallKiller said:

...Zdoom in UDMF format...
________________________________________________________________________


I luv that Format, But I still like using Zdoom in Hexen

Demon101 said:

NightFallKiller said:

...Zdoom in UDMF format...
________________________________________________________________________
Demon101:

I luv that Format, But I still like using Zdoom in Hexen

________________________________________________________________________
Demon101:

Oh Right... continuosly changing cameras... Sorry. Cant help you with that, Hardly use cameras.


You know where the Quote and Edit buttons are, right?

Also, Hexen format is obsolete. UDMF can do everything Hexen format can do (plus much more), only with less hassle.

int CameraState=0;

Script 1 (int base, int increment, int amount)
{
  if(CameraState != amount)
  {
    CameraState++;
    ChangeCamera(base+(increment*CameraState),1,1);
  }
  else
  {
    CameraState=0;
    ChangeCamera(base,1,1);
  }
}
The script takes 3 arguments: the base TID of the first camera in the list, the number that should be added to TID every time the script is called to get the resulting camera ID, and the total number of cameras in the loop.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×