Pick Up and Drop an item
Pick Up and Drop an item
Is it possible to pick up an item, then drop it in another area?
Steve Dilworth - Resisting change since 1965!
Re: Pick Up and Drop an item
Press P and the weapon appears dropped and you can pick it up again.
Careful not to have unassigned control keys,if it does nt work, hit default controls in the level preview options/controls.
I say because i accidentally had the attack button unassigned without having noticed it (all i did to mess it up was just click on the attack key and highlight it without choosing which to assign).
Careful not to have unassigned control keys,if it does nt work, hit default controls in the level preview options/controls.
I say because i accidentally had the attack button unassigned without having noticed it (all i did to mess it up was just click on the attack key and highlight it without choosing which to assign).
Re: Pick Up and Drop an item
Yeah, we know that, but what about something that is not a weapon? Would it work with a crate if we treated it like a weapon?Veleran wrote:Press P and the weapon appears dropped and you can pick it up again.
Careful not to have unassigned control keys,if it does nt work, hit default controls in the level preview options/controls.
I say because i accidentally had the attack button unassigned without having noticed it (all i did to mess it up was just click on the attack key and highlight it without choosing which to assign).
Steve Dilworth - Resisting change since 1965!
Re: Pick Up and Drop an item
Am sorry i was hasty and did not answer.Depending how many different you want.
You can try to spawn Pawns as objects triggered by logic gates type use attribute and with positiontoplayer command drop them near the player,and setup the pawn bounding box height and width to match the object type the dropped.
You can try to spawn Pawns as objects triggered by logic gates type use attribute and with positiontoplayer command drop them near the player,and setup the pawn bounding box height and width to match the object type the dropped.
Re: Pick Up and Drop an item
Dang. I just knew it was going to involve scripting. Out side of using the generic melee script, I have never successfully scripted anything.
Steve Dilworth - Resisting change since 1965!
Re: Pick Up and Drop an item
We would need two entities for each dropped item,one Logic Gate and one Pawn,and this limits the total number per level if we want to keep the memory as free as possible for other calculations.
I might try work on it some day,for stone attributes to be dropped on pressure plates that activate traps or something of similar mechanics,i am not sure yet.
The more we add this way the more its is harder to track every one of them.
The projectiles can not be used either for this,they do not increase an attribute ,they only damage and destruct attributes and also they can not stay for long,unless i try a life time of many seconds but still some time later the life time will expire.
I might try work on it some day,for stone attributes to be dropped on pressure plates that activate traps or something of similar mechanics,i am not sure yet.
The more we add this way the more its is harder to track every one of them.
The projectiles can not be used either for this,they do not increase an attribute ,they only damage and destruct attributes and also they can not stay for long,unless i try a life time of many seconds but still some time later the life time will expire.
Re: Pick Up and Drop an item
I'm trying to see how it would work, but I'm not getting it. I just have to wonder if we can set it as a weapon to be dropped.Veleran wrote:We would need two entities for each dropped item,one Logic Gate and one Pawn,and this limits the total number per level if we want to keep the memory as free as possible for other calculations.
I might try work on it some day,for stone attributes to be dropped on pressure plates that activate traps or something of similar mechanics,i am not sure yet.
The more we add this way the more its is harder to track every one of them.
The projectiles can not be used either for this,they do not increase an attribute ,they only damage and destruct attributes and also they can not stay for long,unless i try a life time of many seconds but still some time later the life time will expire.
Steve Dilworth - Resisting change since 1965!
Re: Pick Up and Drop an item
I tried to set a weapon initial = 4 low = 0 high = 4 , and it i pressed P at various spots but only one weapon dropped total.
The idea was the logic gate -type use attribute-would just wait until it gets the signal that you use a specific attribute and triggers the attribute pawn to go to an order where it waits for a key to be pressed, and if so,modify that attribute by script command to -1 and to position to where the player is.
I have not tried it but in theory it looked like it would work.
The idea was the logic gate -type use attribute-would just wait until it gets the signal that you use a specific attribute and triggers the attribute pawn to go to an order where it waits for a key to be pressed, and if so,modify that attribute by script command to -1 and to position to where the player is.
I have not tried it but in theory it looked like it would work.
Re: Pick Up and Drop an item
Okay, I understand the idea, but I don't understand, and have never understood, is how to make script affect anything in the game. The only thing I ever got to work was a pawn using the generic monster script. That was because a pawn asks what script to use. Otherwise, I'm lost.Veleran wrote:I tried to set a weapon initial = 4 low = 0 high = 4 , and it i pressed P at various spots but only one weapon dropped total.
The idea was the logic gate -type use attribute-would just wait until it gets the signal that you use a specific attribute and triggers the attribute pawn to go to an order where it waits for a key to be pressed, and if so,modify that attribute by script command to -1 and to position to where the player is.
I have not tried it but in theory it looked like it would work.
Steve Dilworth - Resisting change since 1965!