iPrestege Posted February 5, 2014 Share Posted February 5, 2014 Hello guys I was using this function today createFire but i want to ask how i can know's that if the fire was destroyed? Because the 'Fire' Isn't an element .. Thanks in advance : ) ! Link to comment
Castillo Posted February 5, 2014 Share Posted February 5, 2014 There's no way to know that. Link to comment
iPrestege Posted February 5, 2014 Author Share Posted February 5, 2014 But i can make an element and set the data to the fire? And check when it's destroyed using onElementDestroy ? Link to comment
Castillo Posted February 5, 2014 Share Posted February 5, 2014 And how are you going to do that? the fire isn't an element. Link to comment
iPrestege Posted February 5, 2014 Author Share Posted February 5, 2014 And how are you going to do that? the fire isn't an element. But what if use these functions : createElement setElementParent Ex : local Element = createElement("Fire") local x,y,z = getElementPosition(localPlayer) fire = createFire(x,y+1,z,8) setElementParent(fire, Element) P.S : I'm not sure that it is the correct way to do that. Link to comment
Castillo Posted February 5, 2014 Share Posted February 5, 2014 And how are you going to do that? the fire isn't an element. Link to comment
iPrestege Posted February 5, 2014 Author Share Posted February 5, 2014 So you mean that i can't create an element and add the fire to it and use it as an normal element? Link to comment
Castillo Posted February 5, 2014 Share Posted February 5, 2014 createFire returns a boolean ( true/false ), not an element. Link to comment
iPrestege Posted February 5, 2014 Author Share Posted February 5, 2014 Thanks Castillo's that was useful . P.S : Please Lock The Topic Link to comment
TAPL Posted February 5, 2014 Share Posted February 5, 2014 You can use this. https://community.multitheftauto.com/in ... ls&id=4671 Link to comment
iPrestege Posted February 5, 2014 Author Share Posted February 5, 2014 I guess this is what i was looking for thanks TAPL i will try it. EDIT : Yes this is it thanks a lot! Link to comment
Recommended Posts