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

security cameras

Recommended Posts

I have been trying to get this security camera script to work but for some reason it just wont do what I want.

int cam = 0;
script 8 (int min, int max)
{
if (cam < min || cam >= max)
cam = max;
else
cam++;

ChangeCamera(70, 0, 1);
}

It's supposed to cycle between my cameras (tid's 70-74) but for the life of me I can't figure out how. I've tagged the activator line with the acs script execute properly but it never leaves the first camera. Anyone know why?

Share this post


Link to post

#include "zcommon.acs"

int currentCam = 70;
int firstCam = 70;
int lastCam = 74;

script 1 (void)
{
	ChangeCamera(currentCam, 0, 1);
	if (currentCam < lastCam) currentCam++;
	else currentCam = firstCam;
}
This works in a small map I have. If you want I can mail it to you.

Share this post


Link to post

Security is most important thing and security cameras play important role in our daily life. If someone needs best security cameras service then contact with us and ask frequently.

Share this post


Link to post
Mike Stefen said:

Security is most important thing and security cameras play important role in our daily life. If someone needs best security cameras service then contact with us and ask frequently.

You didnt even give a contact number.

Share this post


Link to post
Guest
This topic is now closed to further replies.
×