Skip to content

Commit

Permalink
Added OnGather hook.
Browse files Browse the repository at this point in the history
New hook that's triggered when a player gathers any of the resources.
Syntax: OnGather( ResourceDispenser source, BaseEntity player,
ItemAmount item )
  • Loading branch information
Mughisi committed Dec 23, 2014
1 parent 675bbdb commit 6e00953
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions RustExperimental.opj
Expand Up @@ -835,6 +835,33 @@
},
"MSILHash": "BtupMqAIcHDN1JwJ1fDEAH+f+TIITY325kna3LF8SlA="
}
},
{
"Type": "Simple",
"Hook": {
"InjectionIndex": 49,
"ReturnBehaviour": 0,
"ArgumentBehaviour": 4,
"ArgumentString": "this,a0,l3",
"HookTypeName": "Simple",
"Name": "GiveResourceFromItem",
"HookName": "OnGather",
"AssemblyName": "Assembly-CSharp",
"TypeName": "ResourceDispenser",
"Flagged": false,
"Signature": {
"Exposure": 0,
"Name": "GiveResourceFromItem",
"ReturnType": "System.Void",
"Parameters": [
"BaseEntity",
"ItemAmount",
"System.Single",
"System.Single"
]
},
"MSILHash": "5UxzoiVVJnMbTHEwqQrocQu/NRUNRqirWQBBWY/snK0="
}
}
]
},
Expand Down

0 comments on commit 6e00953

Please sign in to comment.