SysSetPOV counter timer?

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
DigaRW
Militia Captain
Militia Captain
Posts: 501
Joined: Thu Jul 30, 2015 3:10 pm
Location: The place where I belong
Contact:

So I trying to make a "telescope" with SysSetPOV. The problem is, it permanent and requires additional code to set POV back to playership. I kinda stuck trying to make it back. Is there a possible counter timer on SysSetPOV to revert back to playership?

Forums function list currently only listing API 51, while latest version uses API 53. So I'm not sure if it has been added. Perhaps I will request this feature in Ministry later.
Download Transcendence mods from Reinvented Workbench Project!
Click this link!
relanat
Militia Captain
Militia Captain
Posts: 931
Joined: Tue Nov 05, 2013 9:56 am

API 53 doesn't show any options on sysSetPOV.

Code: Select all

(sysSetPOV obj|vector) -> True/Nil
You could use a timer event to return the POV to the playership.
Something like:

Code: Select all

(block Nil
	(sysSetPOV theOtherView)
	(typAddTimerEvent type delay "Telescope")
)

<Telescope>
	(block Nil
		(sysSetPOV gPlayerShip)
		(typCancelTimerEvent type "Telescope")
	)
</Telescope>
The delay is in ticks.

For an updated function list use AP's AE-Function Help mod. Available on the Multiverse catalog page. You can generate a function list for any game version.
Last edited by relanat on Mon Dec 19, 2022 8:15 am, edited 3 times in total.
Stupid code. Do what I want, not what I typed in!
User avatar
DigaRW
Militia Captain
Militia Captain
Posts: 501
Joined: Thu Jul 30, 2015 3:10 pm
Location: The place where I belong
Contact:

I've do it like that before, but instead I using sysAddTimerEvent. And also found out that I should use actual type of the item, not 'gItem'. It's working flawlessly and now I can take screenshot of certain enemies without getting killed.

Thank you so much!
Download Transcendence mods from Reinvented Workbench Project!
Click this link!
Post Reply