Difference between revisions of "User talk:Ashileedo"
Jump to navigation
Jump to search
no edit summary
imported>Pionere |
imported>Pionere |
||
Line 68: | Line 68: | ||
I would like to add doorknockers to several houses with an attached script, which calls the owner to the door. My idea is to set the owner of the doorknocker to the same as the owner of the house. The script of the doorknocker would set a global variable to the owner of the house. Every HouseOwner would have an AI package which checks whether its door was knocked or not and act accordingly. | I would like to add doorknockers to several houses with an attached script, which calls the owner to the door. My idea is to set the owner of the doorknocker to the same as the owner of the house. The script of the doorknocker would set a global variable to the owner of the house. Every HouseOwner would have an AI package which checks whether its door was knocked or not and act accordingly. | ||
With this I have two problems: | With this I have two problems: | ||
* I need to set a global variable to the ownerId of an item, but I can not find a function like getOwnerId | |||
* I need to check a current NPC id and the global variable to act only if the NPCs door was knocked. | |||
I've managed to create the doorknocker to a specific NPC, but I would like to create more generic scripts which I can add to every houseowner throughout Oblivion. | I've managed to create the doorknocker to a specific NPC, but I would like to create more generic scripts which I can add to every houseowner throughout Oblivion. | ||
Any help would be welcome. | Any help would be welcome. | ||
Thanks. | Thanks. | ||
--[[User:pionere|pionere]] 11:17, 8 April 2006 (CET) |