Scripting Refire
Quote from Goldenknighttim on July 17, 2014, 12:14 pmOk, I'll mess with that this evening. Thanks for your help Felix. I'm a bit afraid of the object tipping over though. . I'm sure I can find a way to stop that from happening.
Ok, I'll mess with that this evening. Thanks for your help Felix. I'm a bit afraid of the object tipping over though. . I'm sure I can find a way to stop that from happening.
Quote from TeamSpen210 on July 17, 2014, 3:57 pmUsing a phys_keepupright will make it right itself.
Using a phys_keepupright will make it right itself.
[spoiler]- BEE2 Addons | (BEE2)
- Hammer Addons
Maps:
- Crushed Gel
- Gel is Not Always Helpful[/spoiler]
Quote from Goldenknighttim on July 17, 2014, 4:44 pmThanks, That will be useful. While on the thought of using entities and scripting together, Does anyone know if there is a way to use scripts to create an entity?
Thanks, That will be useful. While on the thought of using entities and scripting together, Does anyone know if there is a way to use scripts to create an entity?
Quote from FelixGriffin on July 17, 2014, 10:21 pm
- Code: Select all
local ent = Entities.CreateByClassname("game_text");
- Code: Select all
local ent = Entities.CreateByClassname("game_text");
Quote from TeamSpen210 on July 17, 2014, 11:01 pmThere's also special functions for env_entity_maker entities to spawn the template at a specified locations and angle. You might want to use EntFireByHandle with the AddOutput input to change keyvalues and add outputs if needed. (Unless there' some better way to do this, I haven't seen one though). There's also ConnectOutput/DisconnectOutput, which sets up a RunScriptCode input pointing to a function in your script.
There's also special functions for env_entity_maker entities to spawn the template at a specified locations and angle. You might want to use EntFireByHandle with the AddOutput input to change keyvalues and add outputs if needed. (Unless there' some better way to do this, I haven't seen one though). There's also ConnectOutput/DisconnectOutput, which sets up a RunScriptCode input pointing to a function in your script.
[spoiler]- BEE2 Addons | (BEE2)
- Hammer Addons
Maps:
- Crushed Gel
- Gel is Not Always Helpful[/spoiler]
Quote from Goldenknighttim on July 18, 2014, 11:14 amThanks, I'll experiment with those in my next script. As for using SetVelocity() on the physbox, it seems like the motion from the physics is overiding anything from the script. It stays in one spot while I'm not hitting it, but when I jump on it, it throws me in the direction that the velocity is set.
Thanks, I'll experiment with those in my next script. As for using SetVelocity() on the physbox, it seems like the motion from the physics is overiding anything from the script. It stays in one spot while I'm not hitting it, but when I jump on it, it throws me in the direction that the velocity is set.