Scripting School
Would you like to react to this message? Create an account in a few clicks or log in to continue.

New to scripting? We want you!

Official Ventrilo: Host:Apollo.MaxFrag.net Port:3840
TestBed needs our help! Please donate a few dollars to keep it running here!
Have you mastered a specific part of GS2? Create a guide and help others!

You are not connected. Please login or register

Assignment 1 - Heckman

3 posters

Go down  Message [Page 1 of 1]

1Assignment 1 - Heckman Empty Assignment 1 - Heckman Thu May 05, 2011 10:51 pm

Heckman



Code:

function OnPlayertouchesme()
{
    this.chat = "You poked me (or whatever the text was)!";
}

I really want to try and approach this one step at a time. I've tried over and over to learn gscript on my own but I put my goals too high and I end up getting frustrated I don't understand the overall format of it all. That being said I hope to be corrected on the basics so that I can use that knowledge to build up.

2Assignment 1 - Heckman Empty Re: Assignment 1 - Heckman Thu May 05, 2011 11:56 pm

PhilSmith



Don't forget "//#CLIENTSIDE"!
If you do sometimes the code doesn't work at all, other times it doesn't work as intended. But this group can for sure help you learn Very Happy

3Assignment 1 - Heckman Empty Re: Assignment 1 - Heckman Thu May 05, 2011 11:59 pm

Heckman



PhilSmith wrote:Don't forget "//#CLIENTSIDE"!
If you do sometimes the code doesn't work at all, other times it doesn't work as intended. But this group can for sure help you learn Very Happy

That is something that has definitely confused me for some time. I've been programming for a few years in 90% of the time C++ where // means disregard this line. I mean I understand that this isn't the same language but it's still just weird to see is all.

4Assignment 1 - Heckman Empty Re: Assignment 1 - Heckman Fri May 06, 2011 8:49 am

PhilSmith



Heckman wrote:

That is something that has definitely confused me for some time. I've been programming for a few years in 90% of the time C++ where // means disregard this line. I mean I understand that this isn't the same language but it's still just weird to see is all.

It means the same in GScript, however //#CLIENTSIDE is just a special case I guess.

5Assignment 1 - Heckman Empty Re: Assignment 1 - Heckman Fri May 06, 2011 10:05 am

Heckman



PhilSmith wrote:
Heckman wrote:

That is something that has definitely confused me for some time. I've been programming for a few years in 90% of the time C++ where // means disregard this line. I mean I understand that this isn't the same language but it's still just weird to see is all.

It means the same in GScript, however //#CLIENTSIDE is just a special case I guess.

Alright well that's good to know cause that just trips me up haha

6Assignment 1 - Heckman Empty Re: Assignment 1 - Heckman Sat May 07, 2011 4:44 am

David K?



Check under Learning GS2 thread C. I believe explains it well Surprised...

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum