• Announcements

    • Ashal

      SITE MOVED - IN READ ONLY MODE   12/08/2015

      Please use http://www.loverslab.com moving forward. Site has been restored to a previous version, and this one placed into a read-only mode. This is available for a limited time so users may reference/copy content that has been lost in the transition. This will no longer be accessible by December 22nd, 2015.

Archived

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

Halstrom

Question on Goto Script

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

0

Share this post


Link to post