Anderl
Members-
Posts
2,266 -
Joined
-
Last visited
Everything posted by Anderl
-
These functions have nothing to do with animations, so no. And you aren't capable of adding custom animations to MTA, yet.
-
Wtf, i havent removed anything. Only the bottom plastic to let the air cool better is taken away. The CPU cooler and things are attached ofcourse and i havent taken the cooler off. Only removed dust and :~. I know, i have seen laptops very much. Then i get thermal paste, then im gonna take the CPU cooler off. Do you have high temperatures atm?
-
If you removed CPU cooler already I'd recommend you buying some thermal paste fast or you'll now really start noticing high temperatures ( you may not now, but later you'll see ).
-
1. Use local variables; 2. You need to set a name for the function; 3. Where is the event?
-
moveObject createColRectangle Events: onColShapeHit, onColShapeLeave
-
You already have a topic for that, why another?
-
There are lots of topics about that already, if you searched a bit you'd find. Game-Monitor hasn't been working properly from some time ago.
-
Nop, model files in games ever use polygons, the game engine then interpretes the model files and load everything and create a mesh which you can then use - http://en.wikipedia.org/wiki/3D_modeling#Representation | http://en.wikipedia.org/wiki/Polygon_mesh. Anyway, let's stop with this off-topic conversation
-
You are right as far as i know, because mesh is to create polygons easier. Well, from what I've learned a mesh is a set of polygons that creates an "image" of something. E.g. a vehicle that we see in games is just a set of polygons linked, with textures. Anyway, doesn't matter. Just wanted to tell that if these dummy points are what I think then you won't even notice anything.
-
I remember I've read something about dummy points in a topic about 3D model rendering. It's something like the points of a mesh, though I'm not sure 'cause it's been like a year or so.
-
You simply copied parts of codes from the wiki.
-
Well, you can still try to do the collision detection by yourself with processLineOfSight but you most likely would have to re-work the moveObject to stop it ( I don't remember if there is any other way to stop the object from moving when using that function ).
-
I guess you would need to re-create the whole radar. I'm not sure, though. I've never tried to do any changes to the HUD. @Solidsnake14, I guess he wants to replace the map of the bottom radar, not the F11's radar.
-
isElementInWater setTimer setElementPosition
-
Call "getActivePlayers" function to get active players.
-
You use local functions when, for example, you are creating a library. E.g. in C++, PHP and Java( I don't know about this one, never learned it ) there are classes and you can declare functions as private or publics so that programmers just use public functions to manage the whole thing and private functions do the job. In Lua, it's the same. You create local functions to do the job for you and the global functions will be the "interface". Well, this is just an example of what you can use local functions for, but there are a lot more. As for the ";" in the end, it doesn't matter. I just liked it since I started with PHP and C++.
-
Values inside functions will ever be global if you don't declare them as local. Local functions mean they aren't shared outside of the file ( but any global variables declared within them will be global ), the same happens with any other kind of variable. Declaring a function is the same as declaring a variable because a function is a variable. local foo = function() end; -- this is a variable declaration just like the code below local foo2 = 23; -- this is a variable declaration too but 'foo' is a function variable and 'foo2' is an int variable. Declaring: local foo = function() end; Is the same as declaring this: local function foo() end;
-
Como eu crio um sistema de times? (Gangs)
Anderl replied to RuanAguiar's topic in Programação em Lua
Não existe times em português. -
Como eu crio um sistema de times? (Gangs)
Anderl replied to RuanAguiar's topic in Programação em Lua
http://lua.org Btw, não é times, é teams. Times quer dizer tempos, teams = grupos. -
I still don't get where are you getting "sourcePlayer" and "player" variables from, where do you declare them?
-
Is "veh" and "targetPlayerName" declared? By the way, you don't need to do all that thing on setElementHealth, simply set player's health to 0.
