Jump to content

Function Call


The Cartooners

Recommended Posts

OK, I have moved my Item command to the Author Script section as seen below.

 

function zitemArmour:OnPickUp()

-- #GroupDescription=onPickUpArmour --

-- #Comment=onPickUpArmour Comment --

OnItemPickUp()

end

 

The function call also exists within the Author Script section as seen below.

 

function OnItemPickup()

 

--IncrementPickUpCount()

 

if varPickedUpCount > 1 then

--if currentZone ~= nil then

-- if item ~= nil then

-- item:MoveTo(currentZone)

ErrorMsgPickUp()

-- end

--end

else

--if currentZone ~= nil then

-- if item ~= nil then

-- zitem.item:MoveTo(Player)

GoodMsgPickUp()

-- end

--end

end

end

 

As you can see I have commented a lot of stuff out to just get the basic function call to work

 

BUT

 

I receive an error "attempt to call global 'OnPickUP()' (a nil value)"

 

Anyone any ideas on this one?

 

Thanks

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...