Quote:
|
Originally Posted by wild8900
this is all I used in the object in the level:
PHP Code:
if (created){
this.smokex=x;
this.smokey=y;
}
join smoketest;
i used attachtoowner just now. Didnt work.
And the layer is 2
|
Could I see some of the particle modifyer code? Perhaps you are using some kind of static x and y modification in the code, and are not relying on the position of the NPC.
Quote:
|
Originally Posted by Luigi203
PHP Code:
if (created){
thiso.smokex=x;
thiso.smokey=y;
}
You have to set thiso.smokex and thiso.smokey which is compeletely different from this.smokex and this.smokey.
|
.. thiso. is used to access this. variables in the parent.
PHP Code:
function onCreated() {
this.test = "Weee";
with(findNPC("SomeDB-NPC")) {
this.blah = thiso.test;
}
}
this.blah in SomeDB-NPC will now contain "Weee"
Please do not post advice if you don't know what you're talking about.