Jump to content

Destroying contract


Recommended Posts

Hi,

I'm trying to destroy a given Contract c.

It can be declinable or not.

My problem is that some contracts can not be declined (bool c.CanBeDeclined()) so I can not use c.Decline() on these.

I've tried c.Kill(), which is not working either.

How can I destroy it?

Edited by simon56modder
Link to comment
Share on other sites

This is only for offered contracts, not active contracts?

You can use Decline regardless of what the CanBeDeclined flag says, CapCom has a somewhat hidden option to allow this (and the same for cancelling contracts), and I'm pretty sure that it works fine.

You can always go for the brute force method, though, and just remove the contract from the list entirely. All you have to do is make sure to unregister the contract (this should stop it from doing anything), and remove it from the ContractSystem.Instance.Contracts list.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

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.

×
×
  • Create New...