Thread: Functions.
View Single Post
  #5  
Old 03-17-2005, 10:09 AM
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
Quote:
Originally Posted by falco10291029
FOr normal gscript, callnpc can be used (maybe not directly, but I'mn sure it can) to call another npc's function, perhaps through something like:

NPC Code:

callnpc index,call,;


and then in the other npc (recieving the command to call the function):
NPC Code:

if (call) funcname();




I used something similar to that in a summoning system.
You could use triggeraction I suppose. Although, that requires knowing the NPC's location on the board if not a weapon.

Quote:
Originally Posted by falco10291029
And Skyld, take that quote of me out of your sig please....
A'okay. There you go.
Reply With Quote