1.0,  #Mass
        150)  #Speed Rotation

    GaoObject.WriteParticle(TempObject, TParticle)
    return TempObject


Ataker1 = CreateObject()
Ataker2 = CreateObject()
Ataker3 = CreateObject()
Ataker4 = CreateObject()
GaoObject.SetCord(Ataker1, -200, 100)
GaoObject.SetCord(Ataker2, -205, 100)
GaoObject.SetCord(Ataker3, -210, 100)
GaoObject.SetCord(Ataker4, -215, 100)

Transport = Level.SearchObjectByName("Transport")
print "AddrT:", Transport
if Transport != 0:
    GaoObject.AttackObject(Ataker1, Transport)
    GaoObject.AttackObject(Ataker2, Transport)
    GaoObject.AttackObject(Ataker3, Transport)
    GaoObject.AttackObject(Ataker4, Transport)

Level.AddGaoObject(Ataker1)
Level.AddGaoObject(Ataker2)
Level.AddGaoObject(Ataker3)
Level.AddGaoObject(Ataker4)

Level.Pause(5000)
Level.NextScript("pyscripts/test_mission1state3.py")
Beispiel #2
0
import  Level, DGUI

DGUI.SetPopupVisible(True)
DGUI.SetPopupText("He he, I destroy you tradeship.")
DGUI.SetPopupEnableButtons(False, False, True) #Prev, Next, Ok
DGUI.SetPopupFaceImage("texture/gui/other/magnaguard.png")
DGUI.SetPopupScriptNext("pyscripts/test_mission1d2_ok.py")
DGUI.PauseGame(True)

Level.NextScript("pyscripts/test_mission1state4.py")
Level.Pause(4000)
Beispiel #3
0
import Level, Particle, GaoObject

Player = Level.SearchPlayer()
if Player != 0:
	cord = GaoObject.GetCord(Player)
	#print "SC:cord:",cord
	if cord[0]<-230 and cord[0]>-260 and cord[1]<-5 and cord[1]>-20:
		DGUI.PauseGame(True)
		DGUI.SetPopupVisible(True)
		DGUI.SetPopupText("Following you. Consider i'm not fast.")
		DGUI.SetPopupScriptOk("pyscripts/test_mission1d2_ok.py")
		DGUI.SetPopupFaceImage("texture/gui/other/noface.png")
		Transport = Level.SearchObjectByName("Transport")
		print "AddrT:",Transport
		if Transport != 0:
			GaoObject.FollowObject(Transport, Player)
		
		Level.NextScript("pyscripts/test_mission1state2.py")
		Level.Pause(7000)

Level.Pause(1000)
Beispiel #4
0
import Level, Particle, GaoObject

print "New Attack Object scipt... RUN"
if Level.GetPlayerStart():
    print "Restart level..."
    Level.SetCalcSim(1)
    Level.Pause(5000)
else:
    TParticle = Particle.NewParticle(30)
    Particle.SetSprite(TParticle, "sp009")
    Particle.SetnDirection(TParticle, 1.0, 1.0, 0.0)
    Particle.SetCor(TParticle, 0.0, 0.0, -0.1)
    Particle.SetnColor(TParticle, 1.0, 0.8, 1.0, 1.0)
    Particle.SetkColor(TParticle, 1.0, 0.0, 0.0, 0.0)
    Particle.SetSpeed(TParticle, 4, 400, 400)
    Particle.SetLife(TParticle, 0.6)
    Particle.Init(TParticle)

    TempObject = GaoObject.NewGaoObject()

    GaoObject.SetShipType(TempObject, 3)
    GaoObject.SetExplosion(TempObject, "sp011", "sp012")
    rnd = Level.Random(30)
    if rnd < 10:
        GaoObject.SetName(TempObject, "BlackWar")
        GaoObject.SetModel(TempObject, "Ship2")
        GaoObject.SetTypeGun(TempObject, 1)
        GaoObject.SetParticlePos(TempObject, 1, 1, 0, 0)
        GaoObject.SetParamsHS(
            TempObject,
            50.0,  #Shield