Garry's Mod

Garry's Mod

[E2] EntextraCore
 Denne tråd er blevet fastgjort, så den er sikkert vigtig
Sir Papate  [udvikler] 2. juli 2016 kl. 10:51
Documentation
Functions

Function Return Description E:addTag(S) Add the tag S to an entity. R:addTag(S) Add the tag S to an array of entities. E:removeTag(S) Remove the tag S to an entity. R:removeTag(S) Remove the tag S to an array of entity. E:getTags() R Get all tags of an entity. E:hasTag(S) N Return 1 if there have the S tag. R:haveTag(S) R Return an array of all the entities who have the S tag. getEntitiesByTag(S) R Find all the entities who have the S tag.
Function Return Description runOnEntitySpawn(N) ... entitySpawnClk() E ... runOnEntityRemove(N) ... entityRemoveClk() E ...
Function Return Description E:creationID() N Returns entity's creation ID. Unlike E:Id(), it will always increase and old values won't be reused. E:children() R Gets the children of the entity - that is, every entity whose parent is this entity.
Function Return Description E:setKeyValue(S,S) ... R:setKeyValue(S,S) ... E:removeKeyValue(S) ... R:removeKeyValue(S) ... E:getKeyValue(S) S ... E:getKeyValues(S) T ... R:haveKeyValue(S,S) R ... getEntitiesByKeyValue() R ...
Function Return Description E:setWorldTip(S) ... E:removeWorldTip() ...
Function Return Description E:setHalo(V,N,N,N,N) Color, blurX, blurY, additive, ingoreZ E:setHalo(V,N,N,N) Color, blurX, blurY, additive E:setHalo(V,N,N) Color, blurX, blurY E:setHalo(V) Color E:removeHalo() ...
Color: The desired color of the halo.
BlurX: The strength of the halo's blur on the x axis.
BlurY: The strength of the halo's blur on the y axis.
Additive: Sets the render mode of the halo to additive (1 or 0).
Ignore: Renders the halo through anything when set to 1.
Sidst redigeret af Sir Papate; 8. mar. 2017 kl. 6:45
< >
Viser 1-8 af 8 kommentarer
OUIIJM GUIITPS 2. juli 2016 kl. 18:56 
Nice! Now all we need is an entSpawn() function
Sir Papate  [udvikler] 3. juli 2016 kl. 4:44 
I don't how to do that, because every entities need different settings and they have different method to spawn. But I think I can do that for the entities in the spawn list.
OUIIJM GUIITPS 3. juli 2016 kl. 11:30 
Oprindeligt skrevet af Sir Papate:
I don't how to do that, because every entities need different settings and they have different method to spawn. But I think I can do that for the entities in the spawn list.
Instead of you having to mess with all of that just have the player do it :p
Zell 2. nov. 2016 kl. 14:36 
entSpawn is already included in a different E2 core. I think it's AdminCore.
Sanders 7. mar. 2017 kl. 11:45 
Sir Papate you are a miricle worker man!
what on earth does E:setWorldTip(S) do?
Sanders 16. jan. 2018 kl. 13:30 
the halo settings im having some issues with currently im trying this



E = entity()






if(TRACKER){



Arr = findToArray()






for(I=1,Archk:count()){
Arr[I,entity]:setHalo(vec(255,255,0),50,50,1,1)






}


Archk = Arr

}

if(changed(TRACKER) & !TRACKER){

}
for(I=1,Archk:count()){
Arr[I,entity]:setHalo(vec(0,0,0),0,0,0,0)
Archk[I,entity]

}


it valadates but does nothing im going to try to fix it
< >
Viser 1-8 af 8 kommentarer
Per side: 1530 50