iPrestege Posted February 5, 2014 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 : ) !
iPrestege Posted February 5, 2014 Author 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 ?
Castillo Posted February 5, 2014 Posted February 5, 2014 And how are you going to do that? the fire isn't an element.
iPrestege Posted February 5, 2014 Author 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.
Castillo Posted February 5, 2014 Posted February 5, 2014 And how are you going to do that? the fire isn't an element.
iPrestege Posted February 5, 2014 Author 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?
Castillo Posted February 5, 2014 Posted February 5, 2014 createFire returns a boolean ( true/false ), not an element.
iPrestege Posted February 5, 2014 Author Posted February 5, 2014 Thanks Castillo's that was useful . P.S : Please Lock The Topic
TAPL Posted February 5, 2014 Posted February 5, 2014 You can use this. https://community.multitheftauto.com/in ... ls&id=4671
iPrestege Posted February 5, 2014 Author 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!
Recommended Posts