Search found 4 matches
- Sun May 13, 2018 1:48 pm
- Forum: Modding help
- Topic: The best way to share player data across scripts
- Replies: 1
- Views: 830
The best way to share player data across scripts
Hi, I'm making a mod which requires an extra data flag (string or enum) to be attached to players. Is it possible to store an array of this flag (and a corresponding array of player_index to map the two) that can be used across scripts in control.lua, or is there some way I can use flags in a ...
- Wed May 02, 2018 11:13 pm
- Forum: Modding help
- Topic: Iterating through entities in the loaded map
- Replies: 2
- Views: 1610
Iterating through entities in the loaded map
Hey, sorrry this probably seems simple, but how do you iterate through all entities in map of a certain name. Is that what game.get_entity_by_tag does? is tag an index?
- Wed May 02, 2018 10:42 pm
- Forum: Modding help
- Topic: Is it possible to create a new force?
- Replies: 2
- Views: 1309
Re: Is it possible to create a new force?
thanksbetrok wrote:game.create_force
- Wed May 02, 2018 10:37 pm
- Forum: Modding help
- Topic: Is it possible to create a new force?
- Replies: 2
- Views: 1309
Is it possible to create a new force?
I was just wondering if it was possible to create a new force, for a PvP game mode, or if the enemy, neutral and player forces are just like flags or something.