CowTurbo Posted December 30, 2011 Share Posted December 30, 2011 Isnt there no function to get fire position and is it still fireing ? Example: You create fire using fire = createFire ( x,y,z , 3 ) and now i wanna get the fire pos getFirePos ( fire ) ( I know, no such function ) but there isnt no function for it, getElementPosition dont get it. Also, i cant check is it still fireing, something like isFireAlive ( fire ) and it can return true or false ... so, i wanna ask isnt it possible with no way ? if not, then my gamemode wont be cool.. Link to comment
Aibo Posted December 30, 2011 Share Posted December 30, 2011 createFire() doesn't create any elements, and returns only true/false. its just an effect. you might want to take a look at particle objects resource. Link to comment
CowTurbo Posted December 30, 2011 Author Share Posted December 30, 2011 But there is some way to get that if fire truck pulls water on the fire, so i can delete it. ? Link to comment
Xeno Posted December 30, 2011 Share Posted December 30, 2011 Maybe you could create an invisible marker around the fire so that when the water hits the marker...? I dont know... Link to comment
DiSaMe Posted December 30, 2011 Share Posted December 30, 2011 When the key is held down, use getElementMatrix on the fire truck to get position of water origin, use getVehicleTurretPosition to get the direction of water and store this data into a table. Set a timer or attach a client render event to a function which cycles through the table, changes the coordinates in every table element depending on velocity data, decreases Z velocity, giving a gravity effect, checks the distance between stored coordinates and fire object and deletes the object if the distance is small enough. If you want to see the trajectory of these water "particles", you can draw them using getScreenFromWorldPosition and DX drawing functions. So all you need to do is making the trajectory of these "particles" match the trajectory of water which is coming out of the fire truck. I've done this in the past and that wasn't hard. Link to comment
CowTurbo Posted December 30, 2011 Author Share Posted December 30, 2011 CrystalMV , never done things with those functions. Is it too much if i ask this thing from u U Can get credits for sure If no, then i will try Link to comment
DiSaMe Posted December 31, 2011 Share Posted December 31, 2011 I think that shouldn't be too much for you, it's just custom invisible particles system and I already wrote how to do many things. Link to comment
CowTurbo Posted December 31, 2011 Author Share Posted December 31, 2011 Damn u, i will try, only thing where i will be stucked is the timer thing, how i make gravity efect.. im not good at maths Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now