Friggen Lasers!

Post Reply
perrinoia
Site Admin
Posts: 3732
Joined: Sun Jul 01, 2012 7:18 pm

Friggen Lasers!

Post by perrinoia »

I'm trying to spawn a simple targeting laser in the sky, shooting down at the ground, but it ain't working.

First, I create a cameraTurret 512 meters above the ground, then I try this:

Code: Select all

Projectile::spawnProjectile("targetLaser", "0 0 0 0 0 -1 0 0 0 "@ getBoxCenter(%obj), %obj, "0 0 0");
But nothing happens.
Image
perrinoia
Site Admin
Posts: 3732
Joined: Sun Jul 01, 2012 7:18 pm

Re: Friggen Lasers!

Post by perrinoia »

Because I don't think I've ever tried to spawn lasers without a gun, before.

I'll search for them, thanks.
SendSpace.com wrote:Sorry, the file you requested is not available.
Looks like your host doesn't keep files forever.

Can you send them to me?
Image
perrinoia
Site Admin
Posts: 3732
Joined: Sun Jul 01, 2012 7:18 pm

Re: Friggen Lasers!

Post by perrinoia »

Oh, I see. I was trying to make the camera the shooter, and the projectile "targetLaser". Didn't occur to me to spawn a bot, or that my projectile name was wrong.

FYI:

AI::getID() should follow AI::spawn()...

Not sure how it works in reverse order.
Image
User avatar
DaJ4ck3L
Crow{OZ}
Posts: 3375
Joined: Thu Jul 22, 2010 11:51 pm
Contact:

Re: Friggen Lasers!

Post by DaJ4ck3L »

hmmm seeker laser, which laser is that?

And yea that $ai is weird.
Image
User avatar
Ninetails
Posts: 342
Joined: Sat Dec 10, 2011 4:34 am
Location: Frankfurt, Germany
Contact:

Re: Friggen Lasers!

Post by Ninetails »

Next time name all your bots Ninetails :P
Image
perrinoia
Site Admin
Posts: 3732
Joined: Sun Jul 01, 2012 7:18 pm

Re: Friggen Lasers!

Post by perrinoia »

Hmm... Well, I'm testing with 1.40 base, so I guess I'd better make it compatible with both.
Image
Post Reply