"this" pointer

Hi… i have one simple question about “this” pointer. If i have code such as this


door->CastSpell(this, 70172);

Will this gameobject cast spell 70172 on itself?

Thanks for advance.

Swiftblade

Ok… i figured out that this is not working. So can you tell me how can I make this Gobject cast spell on itself?

Use ‘me’

I still doubt it will work; this should be fixed properly with the cannon casting the spell at the door, not the door destroying itself

Yes… i just need the effect. Im adding this spell just for visual effect i will use… maybe HandleGameObject() or door->SetGoState(GO_STATE_ACTIVE); Whatewer will work.

Error… me - undeclared identifier. I think it works only in creature scripts.