Garry's Mod
[E2] EntextraCore
 กระทู้นี้ถูกปักหมุด เพราะฉะนั้นอาจเป็นกระทู้สำคัญ
Sir Papate  [ผู้พัฒนา] 2 ก.ค. 2016 @ 10: 51am
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.
แก้ไขล่าสุดโดย Sir Papate; 8 มี.ค. 2017 @ 6: 45am
< >
กำลังแสดง 1-8 จาก 8 ความเห็น
Nice! Now all we need is an entSpawn() function
Sir Papate  [ผู้พัฒนา] 3 ก.ค. 2016 @ 4: 44am 
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.
โพสต์ดั้งเดิมโดย 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
entSpawn is already included in a different E2 core. I think it's AdminCore.
Sir Papate you are a miricle worker man!
what on earth does E:setWorldTip(S) do?
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
< >
กำลังแสดง 1-8 จาก 8 ความเห็น
ต่อหน้า: 1530 50