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.
SysSetPOV counter timer?
- DigaRW
- Militia Captain
- Posts: 506
- Joined: Thu Jul 30, 2015 3:10 pm
- Location: The place where I belong
- Contact:
Download Transcendence mods from Reinvented Workbench Project!
Click this link!
Click this link!
API 53 doesn't show any options on sysSetPOV.
You could use a timer event to return the POV to the playership.
Something like:
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.
Code: Select all
(sysSetPOV obj|vector) -> True/Nil
Something like:
Code: Select all
(block Nil
(sysSetPOV theOtherView)
(typAddTimerEvent type delay "Telescope")
)
<Telescope>
(block Nil
(sysSetPOV gPlayerShip)
(typCancelTimerEvent type "Telescope")
)
</Telescope>
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!
- DigaRW
- Militia Captain
- Posts: 506
- 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!
Thank you so much!
Download Transcendence mods from Reinvented Workbench Project!
Click this link!
Click this link!