Solved Avoid enemies get items

Question that is answered or resolved.

dantedevil

Well-known member
I found a big problem, after giving the enemies the ability to use weapons.
This enemies, now can get items.

For avoid that, I now about use itembox with candamage player, instead bbox, but I don't wanna use that.
Because using this, the player get the items, only just by touching them.
 
Last edited:
Solution
Even if i have never tested it, this should make the trick:

stealth {stealth} {perception}

    ~This command sets stealth ability to entity
    ~{stealth} defines how 'invisible' the entity to hostile entities. Default value is 0
    ~{perception} defines how well entity can see stealth entities. Default value is 0
    ~For instance, entity with {stealth} 2 is only 'visible' to hostile entities with {perception} 2 or higher
    ~This command doesn't affect visual at all IOW entity is still visible to players

I'm glad that my other solution worked and i hope this one will too  ;)
dantedevil said:
I found a big problem, after giving the enemies the ability to use weapons.
This enemies, now can get items.

For avoid that, I now about use itembox with candamage player, instead bbox, but I don't wanna use that.
Because using this, the player get the items, only just by touching them.

This also happens with the Mod Fighters History of Pierwolf, where the enemies use the food and recharge their energy, however a Hack was made, which corrects this, but I do not know if Pierwolf authorized this change, this hack was made available here in the forum, and if I'm not mistaken it's on tieba.paidu.com, I hope I'm not violating any rules of the forum.
 
Even if i have never tested it, this should make the trick:

stealth {stealth} {perception}

    ~This command sets stealth ability to entity
    ~{stealth} defines how 'invisible' the entity to hostile entities. Default value is 0
    ~{perception} defines how well entity can see stealth entities. Default value is 0
    ~For instance, entity with {stealth} 2 is only 'visible' to hostile entities with {perception} 2 or higher
    ~This command doesn't affect visual at all IOW entity is still visible to players

I'm glad that my other solution worked and i hope this one will too  ;)
 
Solution
Back
Top Bottom