DevilXD Posted June 4, 2014 Share Posted June 4, 2014 (edited) I made a sword, that can be used as weapon, and it can also burn entities to death by single-shooting it by lightning... For weapon part, I used "weapon" component, for lightning - "spellcaster"... The problem is that I can't cast spell on a creature, because only "Attack" action is showing, and "Cast Spell" isn't... Temporal removing "weapon" component solves this issue, but that's not a way of solving whole problem Is there a way to make it showing right ? "Examine" and "Cast Spell" actions seems to work together fine, so there must be a way to make it show correctly... Edited June 6, 2014 by DevilXD Link to comment https://forums.kleientertainment.com/forums/topic/37137-weapon-and-spellcaster/ Share on other sites More sharing options...
DevilXD Posted June 6, 2014 Author Share Posted June 6, 2014 Bump. Really ? @simplex, @squeek, maybe just a little tip ? I want to make it working, but I don't know where I should start... Link to comment https://forums.kleientertainment.com/forums/topic/37137-weapon-and-spellcaster/#findComment-495051 Share on other sites More sharing options...
_Q_ Posted June 6, 2014 Share Posted June 6, 2014 try changingfunction Telestone:CollectInventoryActions(doer, actions) if self:CanInteract() then if (self:IsMarked() and TheInput:IsKeyDown(KEY_CTRL)) then table.insert(actions, ACTIONS.RESET) elseif self:IsMarked() then table.insert(actions, ACTIONS.RECALL) else table.insert(actions, ACTIONS.MARK) end endendIn your custom weapon component. Link to comment https://forums.kleientertainment.com/forums/topic/37137-weapon-and-spellcaster/#findComment-495059 Share on other sites More sharing options...
DevilXD Posted June 6, 2014 Author Share Posted June 6, 2014 (edited) I do not have a custom weapon component, I uses the original one... The problem is that, weapon component "removes" Cast Spell action, that is coming from spellcaster component... Edited June 6, 2014 by DevilXD Link to comment https://forums.kleientertainment.com/forums/topic/37137-weapon-and-spellcaster/#findComment-495090 Share on other sites More sharing options...
_Q_ Posted June 6, 2014 Share Posted June 6, 2014 (edited) I do not have a custom weapon component, I uses the original one... The problem is that, weapon component "removes" Cast Spell action, that is coming from spellcaster component...Add custom component maybe for managing actions of a weapon.Component will consist only of that collect invenotry action function. Edited June 6, 2014 by _Q_ Link to comment https://forums.kleientertainment.com/forums/topic/37137-weapon-and-spellcaster/#findComment-495095 Share on other sites More sharing options...
DevilXD Posted June 6, 2014 Author Share Posted June 6, 2014 (edited) Ok, maybe I'm describing it not right... So, image when I'm pointing on the ground (everything works fine): Image when I mouse over a target (weapon component overwrites spellcaster component action): I want to acquire something like this (inspectable and spellcaster component's showing their actions at the same time): So, where I should start ? Playeractionpicker component ? Edited June 6, 2014 by DevilXD Link to comment https://forums.kleientertainment.com/forums/topic/37137-weapon-and-spellcaster/#findComment-495096 Share on other sites More sharing options...
DevilXD Posted June 8, 2014 Author Share Posted June 8, 2014 Bump. Link to comment https://forums.kleientertainment.com/forums/topic/37137-weapon-and-spellcaster/#findComment-496383 Share on other sites More sharing options...
_Q_ Posted June 8, 2014 Share Posted June 8, 2014 There is tool in a game axe-pickaxe look at tool component, you really need something that will manage acctions of that weapon. Link to comment https://forums.kleientertainment.com/forums/topic/37137-weapon-and-spellcaster/#findComment-496393 Share on other sites More sharing options...
DevilXD Posted June 8, 2014 Author Share Posted June 8, 2014 (edited) Oh, I see now ! Thank you, I will try doing something like that... EDIT: I have managed to get it working by adding "and not right" to the weapon component Edited June 8, 2014 by DevilXD Link to comment https://forums.kleientertainment.com/forums/topic/37137-weapon-and-spellcaster/#findComment-496429 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now