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 05-31-2004, 04:48 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
with (npcs[index]) question

When I use the command it invokes the command on the NPC that the with (npcs[index]) command is on, not the NPC of the specified index.

For example, say that I had two NPCs, one with an index of 0, and the other with an index of 1, and I put in a command like this into NPC 0.

NPC Code:
if (playerenters) {
with (npcs[1]) {
destroy;
}
}



Then if I enter the level, it's the NPC with the index of 0 that gets destroyed, not the one with the index of 1.

Does with (npcs[index]) only work online, or am I just using it wrong?
__________________
Reply With Quote
  #2  
Old 05-31-2004, 04:59 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
offline it ignores the with statements
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 12:58 AM.


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