Jump to content

Actualization of mod (Solved kinda)


Ragno

Recommended Posts

Good day and thanks for your time; 

i have been trying to use a lockpicking mod (http://pz-mods.net/gameplay/GuysMod/),  everything works fine with the exception of some errors on few functions, that i believe is because a change in the format due to the different versions (mod is for build 27, im playing build 38.5),.

Spoiler

this is the code that i believe requires an update to the current syntaxis of the game
 


function Lockpicking.onPickLock(worldobjects, door, player)

	local adjacent;
	
	adjacent = AdjacentFreeTileFinder.FindWindowOrDoor(door:getSquare(), door);
	if adjacent ~= nil then
		ISTimedActionQueue.add(ISWalkToTimedAction:new(getSpecificPlayer(ISContextMenu.globalPlayerContext), adjacent));
		ISTimedActionQueue.add(GMPickLockAction:new(getSpecificPlayer(ISContextMenu.globalPlayerContext), door, 200));
	end
end

 

I attached the screenshots from the console and the actual lines
 

Screenshot_1.jpg

Screenshot_4.jpg

Screenshot_2.jpg

Screenshot_3.jpg

Edited by Ragno
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...