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
  #16  
Old 01-19-2005, 02:54 AM
Gman4pwnu Gman4pwnu is offline
Banned
Join Date: Jan 2004
Posts: 434
Gman4pwnu is on a distinguished road
Send a message via AIM to Gman4pwnu
so like
callnpc index,test;

would be responded to with if (test){ ?

also is it a serverside cmd?
Reply With Quote
  #17  
Old 01-19-2005, 03:03 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally Posted by Gman4pwnu
so like
callnpc index,test;

would be responded to with if (test){ ?

also is it a serverside cmd?
Yes, and I believe so.
Reply With Quote
  #18  
Old 01-19-2005, 03:04 AM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by Gman4pwnu
so like
callnpc index,test;

would be responded to with if (test){ ?
Yes
Quote:
Originally Posted by Gman4pwnu
also is it a serverside cmd?
It works for either serverside or clientside.

And it should be
NPC Code:
callnpc index,eventflag [,param1,...,paramN];


And parameters are read the same as triggeraction.
Reply With Quote
  #19  
Old 01-19-2005, 03:11 AM
Gman4pwnu Gman4pwnu is offline
Banned
Join Date: Jan 2004
Posts: 434
Gman4pwnu is on a distinguished road
Send a message via AIM to Gman4pwnu
thanks for everyones help, now i can finally work on pathfinding
Reply With Quote
  #20  
Old 01-19-2005, 04:37 AM
Evil_Trunks Evil_Trunks is offline
Evil
Evil_Trunks's Avatar
Join Date: Dec 2004
Posts: 391
Evil_Trunks is on a distinguished road
Stefan once said callnpc was laggy and should be avoided
__________________

Reply With Quote
  #21  
Old 01-19-2005, 04:39 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally Posted by Evil_Trunks
Stefan once said callnpc was laggy and should be avoided
A level triggeraction would be better, anyway, as long as NPCs aren't stacked on top of one another.
Reply With Quote
  #22  
Old 01-19-2005, 04:43 AM
Evil_Trunks Evil_Trunks is offline
Evil
Evil_Trunks's Avatar
Join Date: Dec 2004
Posts: 391
Evil_Trunks is on a distinguished road
what if the NPC is hidden?

the other day, I was wondering what the best way to trigger it would be
__________________

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:08 PM.


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