| Blockland Forums > Modification Help |
| Weapon damage outside of minigames |
| (1/2) > >> |
| Jorgur:
I am making an RPG that does not take place inside a minigame. This is to prevent players from damaging other players (or NPC's). I need to enable damage to and from bots in certain situations, I.e. when fighting monsters. The most practical way to achieve this would be to check the vehicle name on the monster's vehicle spawn brick(not the datablock UIName, since the datablock will vary), and allow damage to occur if the vehicle name is "Monster". However, I am nearly blank on what to do, so I ask of you to give me a hand or just some starting pointers. :) |
| Red_Guy:
use trace(1) when you shoot at something inside a minigame, and outside a minigame this should show you where the differences are. |
| Iban:
Your solution to disable weapon damage is like me saying: "I don't want to go through Airport Security to use an airplane, so I'm going to mutate my body into a bird so I can just fly there myself. However, I am nearly blank on what to do, so I ask of you to give me a hand or just some starting pointers. :)" Idea: Use a minigame and overwrite miniGameCanDamage. |
| Jorgur:
--- Quote from: Red_Guy on April 13, 2011, 07:26:09 PM ---use trace(1) when you shoot at something inside a minigame, and outside a minigame this should show you where the differences are. --- End quote --- Ok, will try that. --- Quote from: Iban on April 13, 2011, 07:33:47 PM ---Your solution to disable weapon damage is like me saying: "I don't want to go through Airport Security to use an airplane, so I'm going to mutate my body into a bird so I can just fly there myself. However, I am nearly blank on what to do, so I ask of you to give me a hand or just some starting pointers. :)" --- End quote --- If it can be done, I will do it. |
| Iban:
Obviously it can be done, you're just going at it in the least logical or practical manner imaginable. |
| Navigation |
| Message Index |
| Next page |