Space Engineers

Space Engineers

218 ratings
[GI] TGP Script V1.1 (Targeting Pod)
9
4
2
3
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
1.056 MB
Nov 28, 2024 @ 3:19am
Jan 27 @ 6:27am
2 Change Notes ( view )

Subscribe to download
[GI] TGP Script V1.1 (Targeting Pod)

Description


We proudly present you the ultimate reconnaissance tool for all types of environmets: The Targetting Pod

This script uses rotors and hinges to control a camera and make it look at a set of positions. It supports gravity stabilization and real time control.



FEATURES:
- You can look at a direction in 5km distance. The pod will stabilize the camera and track the position.
- You can add multiple points to track and also remove if not needed.
- You can convert position from GPS or create GPS coordinates from the tracking point.
- You can use the pod while flying. The pod overrides the gyros in order to keep the aircraft stable.



UPCOMING FEATURES:
- Target locking for moving objects.
- Turret or CTC slaving.
- Improved stabilization.

Don't forget that we need some interest in order to add these features.



HOW TO SET UP:
- Create the pod as shown in the example.
- Place a programmable block in the same grid.
- Name the blocks as shown in the example. (You can change the block names in the script.)
- Set up your hotbar to control the pod.
- Have fun!



ARGUMENTS:
Control:
Enables or disables the control of the targetting pod.

Manual:
No tracking. The camera just moves as you control it.

SearchMode:
Toggles the Search Mode. Search mode locks and stabilizes the camera to the last point the input has been given.
If you control the camera it follows your commands, if you don't it keeps tracking where you are looking. (5KM limit. Returns to manual if out of limit)
Note: Does not work in space. If argument is given it will automatically turn back to Manual.

Point Track:
Disables player control. Player can only switch between pre added points or return to SearchMode to add more points.
Note: Does not work in space. If argument is given it will automatically turn back to Manual.

AddPos:
Switches the state to Point Track and adds the current look position to the list.

DelPos:
Deletes the current position from the list.

NextPos:
Switches to the next position in the list.

PrevPos:
Switches to the previous position in the list.



INPUTTING OR OUTPUTTING GPS COORDINATES:

GetPos:
Outputs the current look position from the list to the PB's custom data.

Inputting GPS coordinates as arguments:
Adds the coordinate's position to the list.



VERSION NOTES:
V1.0:
- Official Release.

V1.1:
- Some bugfixes.
- TGP now can work in space but only in manual control.
- Setting up has made easier.


NOTES:
- You can use this script in your projects, modify it, reupload it to the workshop as long as you give credit to the workshop page of the original.

- Special thanks to Digi for amazing PB debugging mod.

- This mod is a part of F_16 Mega Project.
If you want to learn more: https://discord.gg/gxSyRAvXGh



BLUEPRINTS USED IN VIDEOS:
Leopard: https://steamcommunity.com/sharedfiles/filedetails/?id=2819875413

Dragonfly: https://steamcommunity.com/sharedfiles/filedetails/?id=2875838868
34 Comments
Kumpel Kumplowski Feb 2 @ 2:47pm 
@G-han I am using it but not the same effect/purpose. In my case I need stabilized camera on flying drone. I have that drone programmed using script for movement and behavior to do as I want by commands. I am using vanilla CTC but targeting and stabilization on it is terrible, especially when you have many grids in the group
G-han  [author] Feb 2 @ 2:06pm 
@Kumpel Kumplowski you can use Cast Spectator mod from Klime for those shots.
Kumpel Kumplowski Feb 2 @ 12:54am 
Mod is great. Adding - Target locking for moving objects would make it awesome :) From time to time I record fast paced racers in F1 SE or my Driftsliders, vanila CTC sucks, looses tracked grid when many or cannot properly follow
G-han  [author] Jan 18 @ 9:44pm 
@ebhogeterp Oh boi... You've come to the right place. Check the discord server. And see what F-16 Mega Project is.
ebhogeterp Jan 18 @ 5:46pm 
I wish someone would make an AESA radar mod for space engineers and if you don't know AESA radar is here's a link https://en.wikipedia.org/wiki/Active_electronically_scanned_array
Mr. Edward Hyde Jan 13 @ 6:20am 
This is awesome, please add the features you mentioned :D
iceyrazor Jan 11 @ 10:17pm 
@CZdigger146 "controller" refers to your cockpit not a turret controller
Dr. Distortion Jan 11 @ 1:38pm 
DUDE YESSSS!!!! Thank you!!!!!
G-han  [author] Jan 10 @ 7:31am 
@Captainkoopa
and
@CZdigger146
you can come to the Discord server for both share the script and troubleshooting.
CZdigger146 Jan 8 @ 1:00pm 
Dunno if I'm doing anything wrong, but just after pasting into the progblock, it says that it caught an exception:

Caught exception during execution of script:
Obiect reference not set to aninstance of an obiect.
at Program..ctor()

It does this wether i do everything as the description says, or if i just place a battery, progblock and paste the code in...