Ask a simple question, get a simple answer
Re: Ask a simple question, get a simple answer
I've already removed everything behind and on the side, turned the door by 180°, that does not change anything.
Re: Ask a simple question, get a simple answer
well, there is no projectile collider with offset on that spot, the nearest projectile collider is 3 square forward (will check again something else)THOM wrote: ↑Wed Feb 24, 2021 5:14 pm Good point, maneus.
I've in addition thought if anything with other custom objects may cause the problem. Maybe one has a door component or a ProjectileCollider. Maybe with an offset.
A good way would be to delete all objects one by one and see, if anything changes when doing it.
Also the tileset around is a custom tileset that act as invisible wall (like the dungeon wall tile, but without any wall/pillars), that shows rocky wall on the automap, it only puts a swamp heightmap floor.
I've tryed to put only swamp floor tile around, and move every object far away, but that doesn't change anything.
Re: Ask a simple question, get a simple answer
Try standing in the same place and throwing an item to the west. Does it stop immediately like the firearm attack?
edit: wait I have a better idea. Use this umod:It'll tell you what the firearm attack is hitting.
edit: wait I have a better idea. Use this umod:
Code: Select all
local orig_raycast = FirearmAttackComponent.raycast
FirearmAttackComponent.raycast = function(self, pos, dir, range, ignoreEntity)
local hitWhat, nearestEntity, hitPos = orig_raycast(self, pos, dir, range, ignoreEntity)
gui:hudPrint(string.format("Firearm hit: %s", nearestEntity and nearestEntity.id or hitWhat))
return hitWhat, nearestEntity, hitPos
end
Last edited by minmay on Wed Feb 24, 2021 8:21 pm, edited 1 time in total.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Re: Ask a simple question, get a simple answer
Sometimes a script or an object can produce effects on a wrong level. e.g. when you reppell something on a certain square but forgot to query also for the right level. Maybe something like that is going on.
Re: Ask a simple question, get a simple answer
An item like a shuriken is not blocked and act normally.minmay wrote: ↑Wed Feb 24, 2021 8:15 pm Try standing in the same place and throwing an item to the west. Does it stop immediately like the firearm attack?
edit: wait I have a better idea. Use this umod:It'll tell you what the firearm attack is hitting.Code: Select all
local orig_raycast = FirearmAttackComponent.raycast FirearmAttackComponent.raycast = function(self, pos, dir, range, ignoreEntity) local hitWhat, nearestEntity, hitPos = orig_raycast(self, pos, dir, range, ignoreEntity) gui:hudPrint(string.format("Firearm hit: %s", nearestEntity and nearestEntity.id or hitWhat)) return hitWhat, nearestEntity, hitPos end
I can't use the umod, I have not the game on steam, my game is from humble.
- Zo Kath Ra
- Posts: 937
- Joined: Sat Apr 21, 2012 9:57 am
- Location: Germany
Re: Ask a simple question, get a simple answer
I can't remember, where exactly I bought my game, but it included no key. I have one for LoG1, but not for 2.
Re: Ask a simple question, get a simple answer
lol, I thought that their was no trace on that purchase on humble, or no account created...
I finally found an old txt file, with a link on humble, where I got a steam key,
will try that later.
I finally found an old txt file, with a link on humble, where I got a steam key,
will try that later.
Re: Ask a simple question, get a simple answer
ok, done a quick test with the script:
the thing says it hit "beach_master_gate_7"
that's the door which is placed on coordinates 25,25 and I'm shooting from the coordinates 28,26
this is very weird
the thing says it hit "beach_master_gate_7"
that's the door which is placed on coordinates 25,25 and I'm shooting from the coordinates 28,26
this is very weird
Re: Ask a simple question, get a simple answer
I have a question about spells/ projectiles.
There is a spawnOffsetY line in the script that moves the spell up and down, is there a way to move a spell projectile to the left or right? , I need a particle that travels close to the wall when fired from a spawner.
There is a spawnOffsetY line in the script that moves the spell up and down, is there a way to move a spell projectile to the left or right? , I need a particle that travels close to the wall when fired from a spawner.