Sell
Category: Objects
/ Existence
Since engine version: 4.9.1.0 GWE
Description
Sells an object including all its contents.
Syntax
bool Sell
(int iPlr, object pObj);
Parameters
- iPlr:
Number of the player to which to sell to
- pObj:
[opt]
Object being sold. Can be 0 in local calls.
Remark
CrewMember objects can not be sold.
Example
var obj;
if (obj=FindObject()) Sell(obj, 0);
Sells some object to the first player.
Sven2, November 2001