![]() |
Eh Help with my script please?
Ok I was trying to make a simple body switch script so if my player touchs theres he has there nick and outfit.... and the other player has mine... yeah they switch outfits...
This is my attempt: function onPlayerTouchsMe() { player.colors[0]=this.colors[0]; player.colors[1]=this.colors[1]; player.colors[2]=this.colors[2]; player.colors[3]=this.colors[3]; player.colors[4]=this.colors[4]; player.bodyimg=this.bodyimg; player.headimg=this.headimg; player.shieldimg=this.shieldimg; } but it wont work |
Where are the this.strings added into all of this?
|
gs2
|
I know it's gs2 but you only posted this and I noticed you didn't have any of these this.strings in the script so it's returned to NULL.
|
Quote:
Quote:
Have you tried changing it from serverside to clientside, or vice-versa? |
Make sure you have the script clientsided so it will directly effect the players client, and also.. if you havnt already (which from your post it seems you havnt) make sure you are setting the variables to a color in the onCreated() function.
|
the player's 'image' can be changed both serverside and clientside.
params can only be set serverside though. |
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 09:34 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.