Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Player Index (https://forums.graalonline.com/forums/showthread.php?t=16013)

PresShinP2P 11-02-2001 11:23 PM

Player Index
 
Say I have an putnpc command that puts an npc down that clones the player (thru setcharprop <part>,players[0].<part>) would the clone be different for every player, or would it just be a copy of the guy who used the putnpc command?

Xaviar 11-03-2001 02:36 AM

Depends on whether its an NPC-Server NPC or not, or at least, I think it does, I have almost no experience with NPC Server

LiquidIce00 11-03-2001 03:08 AM

yes it depends..
if you want to put a clone of the player it would be kinda messed up w/o npc server, because of putnpc.
Since in the putnpc command you cant pass arguments when it lays (i think) it will show it as them (or maybe as the leader)..
on npc server if you pass the player who lays , his looks then it would look like him

TDO2000 11-03-2001 03:08 AM

It should look like the player who put it...
if u wannabe sure that a NPC only works for the player who put it down u could use some "paramters" ;) so for example the playersid. Just set the playerid as the image file of the NPC and read it out with #f . normally online the server adds an .gif to the filename but with #e you can substract it. With that id u can check for the right player...


All times are GMT +2. The time now is 09:47 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.