Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → strange aces questions
strange aces questions
2004-02-04, 1:16 AM #1
okey here. I will post some questions here, hope you can ansver.:

1) How to get vector between 2 things. I tried PrintVector(VectorCross(GetThingPos(ship),GetThingPos(target))); but it wont work correct. Return X and Y (Z always 0 [http://forums.massassi.net/html/confused.gif]
2) How to make thing X look and thing Y (rotate to it) NOT AI'ED thing, Ghost
3) And code error:
Code:
killed:
if(GetSenderRef == target)
jkEndTarget();
Return;
# ........................................................................................
Removed:
if(GetSenderRef == target)
jkEndTarget();
Return;

It wont work no removed or killed or demages is called :/ Any ideas?

------------------
The miners of Kiith Somtaaw sacificed much, and risked all. For their efforts they were brought into the inner most circle of Hiigaren power. Naabal, S'jet, and Sobanii bowed before them. And from that day to this, Somtaaw's children have been known to one and all as Beastslayers..
2004-02-04, 1:38 AM #2
Hi there [http://forums.massassi.net/html/smile.gif]

Well for point 3), it's GetSenderRef() so that could be one point to note [http://forums.massassi.net/html/wink.gif]. Also, surely if the thing has been removed the JKEndTarget() verb is redundant (as you've already placed it in the "killed" message... I haven't got access or DataMaster resources to check at my work machine at present, but I'm reasonably sure... [http://forums.massassi.net/html/redface.gif]

For point 1, the DataMaster provides clear, concise information for dealing with all the mathematical components for vectors [http://forums.massassi.net/html/smile.gif]

Sorry, but I can't think of any ideas for point 2) off the top of my head right now.

Still - I hope this has helped somewhat [http://forums.massassi.net/html/biggrin.gif]

-Jackpot

------------------
"lucky_jackpot is the smily god..." - gothicX

"Life is mostly froth and bubble,
But two things stand in stone,
Kindness in another's trouble,
Courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)
"lucky_jackpot is the smily god..." -gothicX
"Life is mostly froth and bubble, but two things stand in stone,
Kindness in another's trouble, courage in your own"
- "Ye Wearie Wayfarer"
|| AI Builder: compatible with both JK & MotS || My website ||
2004-02-04, 4:51 AM #3
jkendtarget() verb is correct. About rest hmm.. where i can get datamaster [http://forums.massassi.net/html/confused.gif] ?

------------------
The miners of Kiith Somtaaw sacificed much, and risked all. For their efforts they were brought into the inner most circle of Hiigaren power. Naabal, S'jet, and Sobanii bowed before them. And from that day to this, Somtaaw's children have been known to one and all as Beastslayers..
2004-02-04, 5:10 AM #4
Hi there [http://forums.massassi.net/html/smile.gif]

I didn't say the verb was incorrect - merely that it's usage in this scenario is redundant because you've used JKEndTarget() in the "killed" message, so the statement is executed at this point. Trying to make it run again in the "removed" message is therefore pointless...

And as for the DataMaster (this is one of those times I wish we could have "sticky" posts [http://forums.massassi.net/html/rolleyes.gif]...), you can download it at SaberMaster's site:
http://www.geocities.com/sabersdomain/ . It is, without doubt, the COG BIBLE and should be consulted as your first port of call [http://forums.massassi.net/html/smile.gif]

And if you're cogging, please whilst you're at it, download Parsec (still from SaberMaster's site). This is a useful script debugger (and gets many aspiring programmers used to the idea of seeing error messages from compiler screens [http://forums.massassi.net/html/wink.gif] )

Hope this helps [http://forums.massassi.net/html/biggrin.gif]

-Jackpot

------------------
"lucky_jackpot is the smily god..." - gothicX

"Life is mostly froth and bubble,
But two things stand in stone,
Kindness in another's trouble,
Courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)
"lucky_jackpot is the smily god..." -gothicX
"Life is mostly froth and bubble, but two things stand in stone,
Kindness in another's trouble, courage in your own"
- "Ye Wearie Wayfarer"
|| AI Builder: compatible with both JK & MotS || My website ||
2004-02-04, 5:57 AM #5
okey. Again. JKendTarget() works fine,. If target is kiled rings float in air or follow projeccilles.

Parsec. Parsec SUX!!! It say my cog have to many erros becose i use playeraction. Useless for me

------------------
The miners of Kiith Somtaaw sacificed much, and risked all. For their efforts they were brought into the inner most circle of Hiigaren power. Naabal, S'jet, and Sobanii bowed before them. And from that day to this, Somtaaw's children have been known to one and all as Beastslayers..
2004-02-04, 6:36 AM #6
well parsec is a JK cog thing not a MOTS cog thing so.... yeh..

but the rest of the time its ok, and you can allways put // ifrount of the MOTS lines when parsecing.

------------------
I am Darth PJB!
well, go on, run away!

i have a plastic lightsaber and a jedi cape.. am i a nerd?

If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?
I am Darth PJB!
well, go on, run away!

i have a plastic lightsaber and a jedi cape.. am i a nerd?

If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?
2004-02-04, 6:39 AM #7
The vector between two things? What do you want to do with this vector?
2004-02-04, 8:42 AM #8
hmm.. well i need to know where is thing A from thing B (for Capital ship rifle targeting, for example when target is up to CS ghost pointed as 'upper guns' will look at it and projeccille). ALso i need to know when target is right before player in center of his screen to make missiles target it. Perhaps there is other way to do it.

------------------
The miners of Kiith Somtaaw sacificed much, and risked all. For their efforts they were brought into the inner most circle of Hiigaren power. Naabal, S'jet, and Sobanii bowed before them. And from that day to this, Somtaaw's children have been known to one and all as Beastslayers..
2004-02-06, 1:27 AM #9
i asked a similar question oen time, so i am watching this thread closely.

------------------
I am Darth PJB!
well, go on, run away!

i have a plastic lightsaber and a jedi cape.. am i a nerd?

If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?
I am Darth PJB!
well, go on, run away!

i have a plastic lightsaber and a jedi cape.. am i a nerd?

If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?
2004-02-07, 12:59 AM #10
nexthinginview, prevthinginview - how they work and why they dont work ? [http://forums.massassi.net/html/confused.gif]

------------------
The miners of Kiith Somtaaw sacificed much, and risked all. For their efforts they were brought into the inner most circle of Hiigaren power. Naabal, S'jet, and Sobanii bowed before them. And from that day to this, Somtaaw's children have been known to one and all as Beastslayers..

↑ Up to the top!