Jump to content

SOLVED Utility.RandomFloat Script help


Swe-DivX

Recommended Posts

Posted

Someone who knows what these settings do?

 

Utility.RandomFloat( 48.0, 96.0 ) trying to understand how this can always be 12
 

Event OnLoad()
	if ( !bIsTested && zzEstrusChaurusInfestation.GetValueInt() as bool && Utility.RandomInt( 0, 100 ) < zzEstrusFertilityChance.GetValueInt() )
		bIsTested = True
		fUpdate = Utility.RandomFloat( 48.0, 96.0 )

		iIncubationIdx = 1
		while ( iIncubationIdx < MCM.kHatchingEgg.Length && MCM.kHatchingEgg[iIncubationIdx] != None )
			iIncubationIdx += 1
		endWhile
		
		MCM.fHatchingDue[iIncubationIdx] = (fUpdate/24.0) + Utility.GetCurrentGameTime()
		MCM.kHatchingEgg[iIncubationIdx] = self
		RegisterForSingleUpdateGameTime( fUpdate )
	endIf
EndEvent

Trying to find out wy Chaurus produce 12 or 13 eggs. I want it to be 1 or set by user.

 

edit: fount it, Int iBirthingLoops = 0 and added new settings for the player in the menu.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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