• How to spawn a radio?? without the Spawnmenu
    0 replies, posted
Hello guys I want to spawn the "mx_radio" without the spawn menu I tried this code, but it's not working in the cinema gamemode... (it's working only in the sandbox) ] mx_radio ERROR: Trying to derive entity mx_radio from non existant entity base_gmodentity! Error: Tried to make a SENT (mx_radio) but it didn't have a 'Type' key! Attempted to create unknown entity type mx_radio! Here is the code: [lua] concommand.Add("mx_radio",function( ply ) local ent = ents.Create( "mx_radio" ) if ent:IsValid() then ent:SetPos( Vector( 2.873410, -646.491089, 80.533295 ) ) ent:SetModel( "models/props_lab/citizenradio.mdl" ) ent:Spawn() print("Mx Radio Spawned") end end) [/lua] [editline]3rd July 2014[/editline] I tried copying base_gmodentity from gamemodes/sandbox/entities/entities/ and put it into the cinema's gamemodes/cinema/entities/entities/ folder. but still not working If anyone have any idea please :'(
Sorry, you need to Log In to post a reply to this thread.