6,834
edits
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
|type = function | |type = function | ||
|name = gta.createPickup | |name = gta.createPickup | ||
|parameters = int model, [ Vec3 position = Vec3(0.0,0.0,0.0), int pickupType = | |parameters = int model, [ Vec3 position = Vec3(0.0,0.0,0.0), int pickupType = 2 ] | ||
|parameter1 = int model The pickup model ID. | |parameter1 = int model The pickup model ID. | ||
|parameter2 = Vec3 position optional Vec3(0.0,0.0,0.0) The position for the pickup. | |parameter2 = Vec3 position optional Vec3(0.0,0.0,0.0) The position for the pickup. | ||
Line 11: | Line 11: | ||
|usage = add a pickup, use the [[addToWorld|addToWorld]] function afterwards to add the pickup to the players games | |usage = add a pickup, use the [[addToWorld|addToWorld]] function afterwards to add the pickup to the players games | ||
|returnInfo = a handle to the pickup | |returnInfo = a handle to the pickup | ||
|notes = Please note that pickup type 0 is invalid. | |||
}} | }} |
edits