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

Add basic support for spawning entities through Lua #281

Merged
merged 1 commit into from
Jul 18, 2016

Conversation

squeek502
Copy link
Member

  • Not very well tested, but is able to spawn info_ff_scripts like flags and have them work like normal
  • Added baseentity:SetName(string name)
  • Added global function SpawnEntity(string entity_class_name, string entity_name) that returns the entity spawned or nil if unsuccessful (example: local entity = SpawnEntity("info_ff_script", "red_flag"))
  • Added global function SpawnEntity(string entity_class_name) that returns the entity spawned or nil if unsuccessful (example: local entity = SpawnEntity("info_ff_script"))
  • Closes Allow Lua to spawn entities #63

 - Not very well tested, but is able to spawn info_ff_scripts like flags and have them work like normal
 - Added baseentity:SetName(string name)
 - Added global function SpawnEntity(string entity_class_name, string entity_name) that returns the entity spawned or nil if unsuccessful (example: `local entity = SpawnEntity("info_ff_script", "red_flag")`)
 - Added global function SpawnEntity(string entity_class_name) that returns the entity spawned or nil if unsuccessful (example: `local entity = SpawnEntity("info_ff_script")`)
 - Closes #63
@squeek502
Copy link
Member Author

@AfterShockFF, any objections to this being merged?

@AfterShockFF
Copy link
Member

No go ahead 👍

@squeek502 squeek502 merged commit 8739ab4 into beta Jul 18, 2016
@squeek502 squeek502 deleted the lua/spawn-entity branch July 19, 2016 03:03
@squeek502 squeek502 mentioned this pull request Jan 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants