Jump to content

Elmatus

Members
  • Posts

    47
  • Joined

  • Last visited

Everything posted by Elmatus

  1. I want to map a beehive of resident evil. I already started. I have the tunnel who drives you down. But i want to create it more realistic. More info please repost por PM me D;
  2. You cant see the lod skin in the map editor. But the lod id its for .lua If you want to delate a worldModel
  3. I have the answer. When you click the "worldObject" button in the map editor: point to your object and it say to you the id and the lod id
  4. Ya esta gracias. Pero me queda un objeto borroso y traspasable. Me an dicho que es "LOD" pero no se como quitar eso. Ayuda?
  5. How i do that Its: setLODElement ( 11545, 0 ) ??? "11545" its the ID of the object "0" Its the alpha Or how i have to write it
  6. I used: resourceRoot = getResourceRootElement() function removeObject () removeWorldModel(16010,1000,-569.70001220703,2593.5,56.299999237061) end addEventHandler ( "onResourceStart", getRootElement(), removeObject ) But it doesn't delate the object, help D:
  7. I used: function openMyGate () moveObject ( myGate1, 14000, -758.40002441406, 2843.1999511719, 50, 0, 0, 0 ) end addCommandHandler("opengate",openMyGate) function sound (p) if (moveObject(myGate, 500, -781.20001220703, -2624.8000488281, 104.09999847412, 0, 0, 0)) then triggerClientEvent(p, 'onClientPlayerOpenGate', p) end end addEvent('onClientPlayerOpenGate', true) But the sound dont get reproduced
  8. But i want that when i use /opengate all the players near to me hear the sound, it works for that?
  9. Like this: playSound3D ( gate.mp3, -756.82775878906, 2842.2609863281, 55.485198974609, [ bool looped = false ] ) setSoundMaxDistance ( gate.mp3, 10 ) ???? And i have to edit the lua and add: <script src="gate.mp3" type="server" /> ??????
  10. And if i use the playSound3D what its the code?
  11. I want tha a sound get reproduced when i close or open the gate, this is my code function openMyGate () moveObject ( myGate, 500, -781.20001220703, 2624.8000488281, 104.09999847412, 0, 0, 0 ) end addCommandHandler("opengate",openMyGate)
  12. ooo now i understand yakuza... i dont understand befor. but on the removeWorldObject() what i have to write in ()? id ,radius or what?
  13. But i can use moveObject () With the original CJ's house? And if i can, what i have to put there? (id, radius x y z)
  14. Thanks 50p it works Thanks to: -50p -myonlake -Twix
  15. I want to do a base with tunnels under the map, and i was asking How to move a WorldObject, for example: move de CJ's house for entry ther. It can be: function () theTunnel myTunnel = moveWorldObject ( id, radius, x, y, z ) ????
  16. I dont see the diference in you line 7 and my line 7 I tryed your script and its de same
  17. Y para moverlo? es que deseo hacer tuneles subterraneos serias asi: moveWorldModel ( int modelID, float radius, float x, float y, float z ) y como se consigue el radius?
  18. It doesnt help me that links D: I need to solve this in console: WARNIG: beta\testsmoke.lua:9: Bad Argument @ 'destroyElement' [Expected element at argument 1] WARNIG: beta\testsmoke.lua:9: Bad Argument @ 'destroyElement' [Expected element at argument 1] WARNIG: beta\testsmoke.lua:9: Bad Argument @ 'destroyElement' [Expected element at argument 1] WARNIG: beta\testsmoke.lua:9: Bad Argument @ 'destroyElement' [Expected element at argument 1] WARNIG: beta\testsmoke.lua:9: Bad Argument @ 'destroyElement' [Expected element at argument 1] WARNIG: beta\testsmoke.lua:9: Bad Argument @ 'destroyElement' [Expected element at argument 1] I dont know why appears, the scrip works perfect, bug that appears in console many times
  19. The final code was this: function createTheGate () myGate = createObject ( 18483, -783.20001220703, 2597.1999511719, 104.09999847412, 0, 0, 83.984985351563 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate ) function openMyGate () moveObject ( myGate, 500, -781.20001220703, 2624.8000488281, 104.09999847412, 0, 0, 0 ) myEffect = createObject ( 2780, -783.90002441406, 2660.5, 104.09999847412, 0, 0, 0 ) setTimer ( function() destroyElement (myEffect) end, 3000, 0 ); end addCommandHandler("opengate",openMyGate) function movingMyGateBack () moveObject ( myGate, 500, -783.20001220703, 2597.1999511719, 104.09999847412, 0, 0, 0 ) end addCommandHandler("closegate",movingMyGateBack) The door opens,the somoke appears, the smoke disappears, BUT, in the consolo say this repeatedly: WARNIG: beta\testsmoke.lua:9: Bad Argument @ 'destroyElement' [Expected element at argument 1] help me please D:
  20. Ob thanks .. It should be right this: setTimer ( 3000 ) destroyElement = ( myEffect ) end addCommandHandler ("effectoff") ????
  21. Help, i created a scrit that when i write /hi the door opens and a smoke object appears, but i want tha when 5 seconds are passed, the smoke objet disappears, i have understand that is: removeObjet = ( myGate ) But it doesnt work, Please help
×
×
  • Create New...