Jump to content

Question on Goto Script


Halstrom

Recommended Posts

Posted

Can anyone tell me whether this looks like it makes sense?

 

scn SexoutFEggDeathClawScript

; *** Script to hatch a Baby Deathclaw at eggs location

float fCurrentTime
float fLastUpdatedTime
float fSecondsMissed
float fScriptSpeed
float fScriptStep
float fEggHealth
float fEggHatchTimer
ref self

Begin GameMode

Set self to GetContainer
If fEggHatchTimer == 0
	Set fEggHatchTimer to 360 * 48
endif

Set fSecondsMissed to GetSecondsPassed

label 2
if fSecondsMissed > 1	
	Set fEgghatchTimer to fEggHatchTimer - 1
	if fEggHatchTimer < 1
		self.PlaceAtMe DeathClawEggNVBroken
		self.PlaceAtMe SexoutFDeathClawOffSpring 0,0,0
		RemoveMe 
	endif
else
Goto 2
endif

End

Archived

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

  • Recently Browsing   0 members

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