Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-31-2003, 03:24 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
id is used to tell showcharacter npcs from players

the index is created and used by your client, so each player has their own set of indecies assigned to the other players in the level (allplayers indecies set apart from this, or do those even have indecies? I don't know much about server-side still) so your index is always one

all you need to do is find the player you want with a for loop i.e.
for (i=0;i<playerscount;i++) {
if (flags_to_tell_if_this_is_the_right_player) {
var = i;

then use that index to get the others' coordinates with players[index].x players[index].y

if you read this and still don't get it, my head will explode, cause anything more will be basically handing you a code
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:34 AM.


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