![]() |
FindNpc to find putnpc2 npc?
I want an NPC in a level using putnpc2. If it's not there i want to create it, if it is i want to send data to it.
However, how can I use findnpc() to find an npc that has been placed by putnpc2? Thanks. |
In theory you can do something like:
PHP Code:
|
ah, thanks, i'll use this.name.
I need the NPC accessible from multiple level NPCs so using with(putnpc2()) wont work. |
Yeah, you would have to store the this.name somehow in the npc that created it.
|
Quote:
|
this.foo =D
|
What I do is:
PHP Code:
|
yeah, but i need to call the putnpc2'd NPC from NPCs other than the one that created it.
|
Quote:
|
| All times are GMT +2. The time now is 01:37 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.