[help] NPCs interacting; CallRemoteFunction() inside NPC filterscript?
#2

Quote:
Originally Posted by Y_Leѕѕ
You can't use CallRemoteFunction in NPC scripts as they're all separate processes.
Thanks for the reply, but i'll try asking slightly more precise

What You say mostly makes sense but.. I'm not any pro pawn hacker, but while speaking of any other languages - most of the time there should be logically possible to make a parent node that can speak to its childnodes, right?

Or a parent object instance, that speaks to it's child objects stored in an enumerable private variable. I did that composition plenty times in prototype.js lol, but that's not the case.

Anyway, i'm looking for any possibly common namespace/variable scope between the game (samp03svr) and the NPC processes (samp-npc) OR a common namespace/variable scope for the NPC processes (samp-npc)

If that's not anyhow possible, i'm looking forward to any suggestions that could possibly guide me on making two NPCs interacting with eachother considering both the approach i thought of (explained in the first post), or any other possible approaches like a global variable that both child processes could have read/write access to.

Or maybe a mysterious, yet unknown to me method of spawning those NPCs?

Thanks
Reply


Messages In This Thread
[help] NPCs interacting; CallRemoteFunction() inside NPC filterscript? - by Kyeno - 15.01.2010, 20:51
Re: [help] NPCs interacting; CallRemoteFunction() inside NPC filterscript? - by Kyeno - 16.01.2010, 01:48
Re: [help] NPCs interacting; CallRemoteFunction() inside NPC filterscript? - by Kyeno - 16.01.2010, 05:09
Re: [help] NPCs interacting; CallRemoteFunction() inside NPC filterscript? - by Kyeno - 16.01.2010, 16:53

Forum Jump:


Users browsing this thread: 1 Guest(s)