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

May 1st Assignment!

3 posters

Go down  Message [Page 1 of 1]

1May 1st Assignment! Empty May 1st Assignment! Tue May 03, 2011 12:16 am

Rave



ok i got this to work offline when i try to convert to gs2 it doesn't work. first i had it in a level npc which didnt work.
I finally put it in the weapons to c if i got errors and it says missing semicolon on line 3 which idk y there would be a semicolon after a function

//#CLIENTSIDE

Function onPlayerTouchsme(){
canbecarried();
message("Put me down now");
}

anybody has any ideas what im doing wrong ?

2May 1st Assignment! Empty Re: May 1st Assignment! Tue May 03, 2011 12:24 am

ZeusCondero


Admin

Rave wrote:ok i got this to work offline when i try to convert to gs2 it doesn't work. first i had it in a level npc which didnt work.
I finally put it in the weapons to c if i got errors and it says missing semicolon on line 3 which idk y there would be a semicolon after a function
Code:

//#CLIENTSIDE

  Function onPlayerTouchsme(){
  canbecarried();
  message("Put me down now");
  }

anybody has any ideas what im doing wrong ?

Try this

Code:
//#CLIENTSIDE
function onPlayerTouchsme () {
this.chat = ("Put me down now");
}

I can't seem to figure out the other part though the site says you use canbecarried();

Also you are going to need to add a timer so that the chair disappears eventually.

This side has a lot of conversions for stuff in Gs1 to Gs2
http://www.graal.net/index.php/Creation/Dev/Script/Starting_Guide

3May 1st Assignment! Empty Re: May 1st Assignment! Tue May 03, 2011 5:53 pm

David K?



Yeah, need to use this.chat or player.chat for messages..
canbecarried(); should work though, I don't remember where you can get it but I have commands.rtf which has a lot of references if you need them.. you can also use the GS1 version of it also. A lot of GS1 scripts still work online.

-edit-
You should use GS2 though lol..

Sponsored content



Back to top  Message [Page 1 of 1]

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