Someone Please Help Me.
I am wrote a script about this topic. This definetly working but i want after the create object write into the chat /cam and remove this objects. Please help me.
function consoleCreateObject ( thePlayer, commandName )
if ( thePlayer ) then
local x, y, z = getElementPosition ( thePlayer ) -- get the player's position
-- create a Object next to the player:
local theObject1 = createObject ( 980, x + 2, y + 2, z, 0, 0, 0 )
local theObject2 = createObject ( 980, x + 3, y + 3, z, 0, 0, 0 )
local theObject3 = createObject ( 980, x + 4, y + 4, z, 0, 0, 0 )
local theObject4 = createObject ( 980, x + 5, y + 5, z, 0, 0, 0 )
end
end
end
addCommandHandler ( "cab", consoleCreateObject )