Jump to content

Scripting Question


Recommended Posts

Posted

Hi all,

 

so i want to create a function that uses the real time for stuff. As example the NPC lock a device on the player and the device need to stay locekd for X real time minutes or hours.

 

so can anyone give me a hint how i can get ingame the current Real Time and use this as a value for the timer calculation?

Posted
1 hour ago, crazyduck said:

so can anyone give me a hint how i can get ingame the current Real Time and use this as a value for the timer calculation?

RegisterForSingleUpdate()
Haven't quite tested that for such long times, but it does survive game reloads. So it probably shouldn't be an issue.

Posted
1 hour ago, Pamatronic said:

RegisterForSingleUpdate()
Haven't quite tested that for such long times, but it does survive game reloads. So it probably shouldn't be an issue.

but how does a registerforsingleupdate() should ive me the real life time? I want to add somethign to the Min aI mod, to make the AI if the submissive Fame in SLSF Reloaded reach a specific value be able to punish the player locking her into a set of devices and at the same time to get the current real life time and keep the value in a float and check the real life time every X minutes and if lets say 30 real life minutes did pass make the AI unlock teh devices again.

And my problem is currently only how to get the real life time as i do not see a way to query the real life time

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...