Jump to content

Function: Mdsi_Takeheat


Recommended Posts

[b]int[/b] mdsi_takeheat(int $heat);

Takes heat from the player's active heat and stores it in the item.

[b]Returns[/b] how much heat was taken.

Amount to take must be positive.
Can only take as much heat as what the player has, trying to take more will cause the player's heat to drop to 0 (currently) and will not store any in the item.

@va = mdsi_takeheat(100);
echo @va . ' heat was taken';

[i]The function is intended for item use only (hence the mdsi) but can be used in any clickable at present.[/i]

Edited by Rendril
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

  • Forum Statistics

    Total Topics
    Total Posts
  • Recently Browsing

    • No registered users viewing this page.
  • Upcoming Events

    No upcoming events found
  • Recent Event Reviews

  • Create New...