Search results

  1. Snake

    Checking if player is on his foundation (proper way)

    @MasterPeace did you ever read it ?
  2. Snake

    Solved Raycasting from an entity?

    Mmmmm, use RaycastAll to get all the colliders. Why ? Because you'll hit the entity itself and that will be useless. For example, if you raycast from a wall position you'll probably hit the wall collider and so it will allways give true; RaycastHit[] hits =...
  3. Snake

    Important How to compile and install - videos

    Try this version : http://fougerite.com/resources/fougerite-official.77/
  4. Snake

    Important How To Setup Fougerite on Your Server

    You are probably missing some Visual C++ libraries.
  5. Snake

    New release imminent, and magic

    Nice ! Fougerite Mail/Conversation
  6. Snake

    Checking if player is on his foundation (proper way)

    Okey, I get what you want to do but looping on all Structures when a player is hit is a very very bad idea. Any server can reach easily 50k structures and we don't have quantum computers. Imagine 3 players shooting at the same time each other. In less than a second looping through 150k objects...
  7. Snake

    On_PlayerHurt

    Well in case you are not programming in C# then no problem.
  8. Snake

    Wiki and Source needs more examples

    I'll be filling all wiki pages with C# code if anybody needs it.
  9. Snake

    On_PlayerHurt

    That requires more code than just writing if blabla is Player
  10. Snake

    Wiki and Source needs more examples

    We need those hooks in Fougerite.
  11. Snake

    spawn wood chest with items

    That's what I've asked. World.Spawn() takes as first argument the prefab as a string. If there's a prefab named Large Wood Storage then perfect but I haven't tried that.
  12. Snake

    On_PlayerHurt

    Mmm I think that wouldn't work. Server.Players is a list of the current players. Fougerite.Player is a type. With "is" you are checking if the type of the object is the type of whatever you want.
  13. Snake

    On_PlayerHurt

    I used to do that but handling exceptions and this stuff is very bad. Now, what I use is (in C#) : if (HurtEvent.Attacker is Fougerite.Player) { // CODE HERE } This is way faster and easier to read.
  14. Snake

    spawn wood chest with items

    Yeah, that can be done. But spawning a Large Wood Chest with World.Spawn() ?
  15. Snake

    spawn wood chest with items

    Does that work ?
  16. Snake

    Spawning items, and bases

    This uLink ruining the whole game...
  17. Snake

    Spawning items, and bases

    I'm not sure but try using .Stop() on the timer instead of killing it.
  18. Snake

    Solved Loops, GetSetting()

    Mmmm ini = Plugin.GetIni("Settings") keys = ini.EnumSection("Items") for key in keys: Util.Log(key + "=" + ini.GetSetting("Items", key)) Is that what you mean ?
  19. Snake

    Solved Wheres Magma ?

    I only have mine and it's still under construction.
  20. Snake

    New release imminent, and magic

    That's the issue I posted some time ago. chat.say exceptions don't give any helpfull info :(