Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no list of classes of entitys given for some functions #1

Open
ghost opened this issue Apr 5, 2017 · 5 comments
Open

no list of classes of entitys given for some functions #1

ghost opened this issue Apr 5, 2017 · 5 comments

Comments

@ghost
Copy link

ghost commented Apr 5, 2017

i see that there isnt a list of all classes or entitys for some functions and there is no teamIndex cases like:
cis vs rep= "cis"=1, "rep"=2
etc..

can this be added?
thanks in advance

@marth8880
Copy link
Collaborator

What do you mean exactly? REP and CIS (as well as ALL and IMP) are simply variables with integer values.

@ghost
Copy link
Author

ghost commented Apr 6, 2017

well i mean wome functions need parameters that arent listed.

and i also mean there is no such thing like entitys.GetAll() to use in for k, v in next entitys.GetAll() and which an entity from all the entity is v.

@ghost
Copy link
Author

ghost commented Apr 6, 2017

so it wouod be handy to have a list of all classes or a method to iterate over all entitys in the game (or bots or players) to use functions with it.

( i cant edit my comment. why puffin why?)

@marth8880
Copy link
Collaborator

Apologies for taking forever to get back to you on this.

well i mean wome functions need parameters that arent listed.

Which functions are missing which parameters?

and i also mean there is no such thing like entitys.GetAll() to use in for k, v in next entitys.GetAll() and which an entity from all the entity is v.

Like you said, this unfortunately does not exist within the game's scripting API.

so it wouod be handy to have a list of all classes or a method to iterate over all entitys in the game (or bots or players) to use functions with it.

You can sort of do this by maintaining an array of the alive units on each team with some combination of GetCharacterUnit, OnCharacterSpawn, and OnCharacterDeath.

@ghost
Copy link
Author

ghost commented Dec 30, 2017

with the functions that miss param args i mean functions based with entities, teams and classes of units. there are some classes given in the doc but no entities. the part about entities is very obscure because you don't know what the entities are or even the names of them. basically because there is no function that returns a table of all entities/classes to iterate over its very hard to do entity/class wise operations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant