View Single Post
  #7  
Old 05-29-2006, 04:35 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
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.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote