View Single Post
  #2  
Old 03-14-2007, 07:05 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
I think it is probably misbehaving because player.weapons[] is actually an array of weapon objects:
PHP Code:
echo(findPlayer("Skyld").weapons[0].objecttype()); 
... is giving "TServerNPC".

obj.index() tends to check for whatever you give it; if you give it a string and it finds TServerNPCs, then it is probably working just as expected by ignoring them.
__________________
Skyld
Reply With Quote