Scripts / Surveillance camera script

Author
Message
Farticus
9
Years of Service
User Offline
Joined: 4th Mar 2015
Playing:
Posted: 9th May 2023 15:37
Hi.

I tried adding two behaviours in GG Max, surveillance camera and surveillance monitor, into two entities. I tried the smart connection (or whatever its called) thing to connect the two. I tried making a smart object (i.e. a grouped one). Yet I can't establish a connection between surveillance camera and monitor: the monitor script says "Camera not connected" or something to that effect when I press 'E' near it.

How is this connection achieved in GG Max?

Any help will be greatly appreciated.
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 9th May 2023 17:27 Edited at: 9th May 2023 17:27
there's a .txt file in with the script that explains it in more detail
Quote: "Secuity Camera
Place a security camera support for the camera if required.
Place the security on the suppport or elsewhere

The applied object will create a rotatable security device?
Set Static Mode = No, Physics = On, Explodable = Yes, IsImobile = Yes
Behaviour Settings
-Change the prompt text for when alarm is sounded
-Set the security camera detection range
-Set the security camera scan radius
-Set the detection mode wether the alarm activates on or off
-Set the alarm range for activating nearby enemy in range response
-Change wether the camera is Visible or Invisible
-Set the sound for the Device Loop
-Set the sound for the Alarm Loop

Will activate other zones or entities if linked when alarm is created.

Models and sounds supplied"


Quote: "Secuity Camera Monitor
Allows the monitoring of a security camera objects view.
Place an object for the monitor in the map. Always active ON

Behaviour Settings
Set the ACTIVATION TEXT
Set the USEAGE TEXT
Set the USEAGE RANGE
Set the CAMERA HUD either In-Built, Custom Image, Game Huds or Variable Hud
Set the HUD RESTORE Default = 1 for restoring the game hud after use
(Variable Hud mode uses the two following fields to use, a global variable name and value)
HUD VARIABLE NAME eg: g_MYGAME_Hud - name of your global variable
HUD VARIABLE VALUE a value to be passed to the global variable
(These are only used if you are doing customised variable huds)
Set the IMAGEFILE for the Custom Image (when using Custom Image mode)
Set the CAMERA FEED ANGLE either 1=Forward, 2=15 Degrees, 3=45 Degrees, 4=90 Degrees, 5=Backward
Set the ANGLE_CYCLE_KEY on or off to allow R key to cycle the camera feed views
Modify the CAMERA FEED Y value so suit, default is 20
Set the CAMERA NAME you wish to connect this montor to eg:"Security Camera"
Set a specific CAMERA TARGET (Entity #) if required for the camera to follow.
If left at 0 will just use the cameras default scan view.

Mouse Wheel will control +-Zoom when viewing camera feed
Set Sound0 for start/end activation sound if required.

Using the security monitor will also active an entity or zone if linked.


- Special thanks to OldFlak for the help and Camera Hud Images.


"
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Farticus
9
Years of Service
User Offline
Joined: 4th Mar 2015
Playing:
Posted: 11th May 2023 18:19
Thanks for your response. Unfortunately, it still doesn't work. I have a laptop object set to non-static etc. as the "secmon" entity with the associated script attached.

Has anyone gotten these things to work in Gameguru MAX?
PM
bluemeenie195
6
Years of Service
User Offline
Joined: 28th Oct 2018
Location:
Posted: 13th May 2023 19:20
In the security monitor behavior, look for "camera name". If it says Security Camera make sure the surveillance camera is named Security Camera. Then go down to "camera target", put the entity # of the entity you want the camera to look at.
PM
Farticus
9
Years of Service
User Offline
Joined: 4th Mar 2015
Playing:
Posted: 17th May 2023 02:31
Thanks for the response. I still couldn't get the scripts to work. I managed to turn the monitor entity into a camera, but I cannot connect it to any actual security cameras.
PM

Login to post a reply

Server time is: 2024-11-21 10:14:05
Your offset time is: 2024-11-21 10:14:05