Quote:
Originally Posted by mrnothersan
Right... so my NPC script currently looks like this:
PHP Code:
function onActionPlayerOnline() {
player.addWeapon("testgui","Tailor");
}
(from a previous script and i just add ... will it still work if i remove ?
EDIT: I removed player. and applied... entered game and it 1.Removed all my tools. 2.Didn't give me testgui or Tailor....
|
It seems like you have some critical misunderstandings of GS2. Adding more parameters to a function, like you just did with
addWeapon, does not call it twice.
Look at what Fowlplay posted if you want to add multiple items. He uses the proper structure to do this (an array).