CreateObject
From Liberty Unleashed Wiki
Syntax
object = CreateObject( ModelID, Vector )
Arguments
- ModelID - The Model of the pickup to be created.
- x y z - The Vector where you want the pickup to be created.
Example
function onPlayerCommand( player, cmd, text ) { if ( cmd == "ramp" ) { local pos = player.Pos; CreateObject( 1378, Vector( pos.x, pos.y, pos.z ) ); } }
This command will create a ramp at the player's location.
Notes
The call onPlayerCommand was used in in this example. More info about this in the corresponding page.