Help scripter

Started by EK.IceFlake, Sep 05, 2015, 10:22 AM

Previous topic - Next topic

EK.IceFlake

Alright, KAKAN and Matheus!
Time to get to work.
I'm gonna assign you each a small li'l thng
I haven't chose Xmair currently because he will be in charge of some interiors.
[spoiler=KAKAN]You're gonna make some functions like this:
function CPlayer::function_name(args_optional)
{
}
You have to make:
Vector CPlayer.ForwardPoint(nDistance); which will return a point in front of the player using his angle[/spoiler]
[spoiler=Matheus]You will have to make functions like this:
function CObject::function_name(args_optional)
{
}
You will make:
int CObject.FaceVector(vFacing, nOffset); which will return an angle pointing towards towards a vector plus the offset.
[/spoiler]
Btw, you needa know a li'l maths for that :D

KAKAN

I don't understand what u mean, btw I can't do it, my exams will be strating tommorow
oh no

EK.IceFlake

Okay, I'm gonna do it myself, but what I meant is that it will calculate a pos for example:
              This is right in front of the object with its angle its distance is 300, it should come if I do object.ForwardPoint(300)


                                                                                   ^ThisIsTheObject^ 

Xmair

Why not make a channel on IRC? Make every OP there, Change the topic for new questions. PM the channel on forum.

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

Thijn

Locked. Either use PMs or get together on IRC.