Jump to content

little advice


biblo

Recommended Posts

i change a hat item into a earring.

 

i have it using ifininterior to turn on a cat eye effect if i enter a building.

 

How can i get it to come on if it is night time when i am outside? I figure it is something to do with gettime. but not sure.

Link to comment
Share on other sites

GetGlobalValue GameHour >= 20 OR

GetGlobalValue GameHour <= 6 OR

 

Didn't work either,

 

That will ONLY work in a condition... to use it in a script you need...

if GameHour >= 20 || GameHour <= 6
;do your stuff here
endif

 

Inside a script, global values are accessed simply by name. In conditions, they're accessed using GetGlobalValue. GetGlobalValue does not work in a script. However, if this is a condition, what you posted and I quoted is a correct condition for checking if the game hour is between 8pm and 6am.

Edited by Astymma
Link to comment
Share on other sites

  • Recently Browsing   0 members

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