This script produces the spacecraft that attack the Deep Space Gravitic Observatory during the introductory level of "The Ominus Project"....


//After 600 ticks, start bringing on the monsters!!

//"Hole" is a named point, placed into the level using the editor
//"HoleInSpace", "Invader" etc. are named objects built with the Creature Creator

if localtime == 600 then
    new object hol ( HoleInSpace @ Hole )
endif

if localtime == 670 then
    new object mon1 ( Invader @ Hole)
endif

if localtime == 690 then
    new object mon2 ( InvaderLeft @ Hole)
endif

if localtime == 750 then
    new object mon3 ( Invader @ Hole)
endif

if localtime == 800 then
    new object mon4 ( InvaderLeft @ Hole )
endif

//Launch a torpedo...
//Draw a vector from a monster to a target spot (specified using the Editor GUI)
//and scale it so the torpedo's travel lasts 3 seconds of time

if localtime == 760 then
    new object torp1 (Torpedo @ mon1.position)
    torp1.velocity = scaledown ( difference( target1.position , mon1.position) , 3s )
endif


if localtime == 770 then
    new object torp2 (Torpedo @ mon2.position)
    torp2.velocity = scaledown ( difference( target2.position , mon2.position) , 3s )
endif


if localtime == 780 then
    new object torp3 (Torpedo @ mon3.position)
    torp3.velocity = scaledown ( difference( target3.position , mon3.position) , 3s )
endif

continue

 

Back to FATE page...