Capsule Action
Posted: Mon Jan 01, 2018 10:11 am
In reference to viewtopic.php?f=25&t=55652 .
I'm thinking this could work similar to how surface::create_entity works.
It would work as if the player clicked on the location with the appropriate capsule.
Required parameters would be position and type.
Going off what's in the item\capsule.lua prototype, allowed values for type would be: throw, equipment-remote, destroy-cliffs, and artillery-remote.
Further required parameters would then be based off the type, similar to how create_entity's further parameters are based on the entity type.
Throw would require attack_parameters, which its self would require a projectile.
Equipment-remote would require and equipment parameter
Destroy-cliffs would require a radius and attack_parameter
Artillery-remote would require flare
I'm thinking this could work similar to how surface::create_entity works.
It would work as if the player clicked on the location with the appropriate capsule.
Required parameters would be position and type.
Going off what's in the item\capsule.lua prototype, allowed values for type would be: throw, equipment-remote, destroy-cliffs, and artillery-remote.
Further required parameters would then be based off the type, similar to how create_entity's further parameters are based on the entity type.
Throw would require attack_parameters, which its self would require a projectile.
Equipment-remote would require and equipment parameter
Destroy-cliffs would require a radius and attack_parameter
Artillery-remote would require flare