#Question on a mechanic

1 messages · Page 1 of 1 (latest)

viral loom
#

I see people make shell ejecting guns where the casing flyes out, how could this be done? I would be really greatful if somebody had the time to explain it just in short terms so I can then learn more about it

restive island
#

@viral loom

#

Luckily. I’m working on a game with advanced interaction

#

All you have to do is get something for the casing, add a tag to it and then clone it for how much casings or ammo is in your gun if you have a ammo system

#

Also, make sure configure with circuits is on

viral loom
#

@restive island
Thank you mate I'll Look more into it

#

So have an interaction zone and have the bullet like with a tag and only the tagged item can go in that zone?

harsh anvil
terse mortar
harsh anvil
#

It’s always said Modulo

terse mortar
harsh anvil
#

Really?

#

That’s crazy

#

(And useless)

shrewd tartan
#

-6 modulo 5 = 4
-6 remainder 5 = -1

harsh anvil
#

Bruh

#

Why

shrewd tartan
#

I don't know if you know this, but |-1| does not equal 4

harsh anvil
#

Oh I’m slow

#

I literally read the first thing and skipped the next

#

I thought the literal definition of Modulo was remainder

restive island
#

That’s what I use

#

Is that for the ejecting system?

viral loom
restive island
#

Yeah. Just use a vector component and a set velocity

viral loom
viral loom
viral loom
#

@restive island

restive island
#

How do you want it to respawn?

#

@viral loom

viral loom
restive island
#

Nooooo

viral loom
#

I'm sorry I haven't got into mechanics really

restive island
#

Thats what the remainder chip is for

#

say that you have 5 casings total

#

It will keep cycling through them over and over

restive island
viral loom
restive island
#

ah

#

So the casing pop out auto?

viral loom
#

Ill make an animation to open the barrel and interact with it to take the casing out nad then Put in a while new bullet inside

restive island
#

Alright

#

Im not an animation guy. I just use pistons to do all the "animations"

viral loom
restive island
#

Yeahhh

viral loom
#

Last question

#

Is there a way to reload a gun by taking the whole magazine out and then putting a full one in

restive island
#

There is a way

#

Like I said

#

I could do that all with pistons

#

But idk if you would want to

#

I saw a inventions that had stuff like that. But it used cv1 😭

viral loom
#

Aha ok thank you very much

restive island
#

Your welcome

#

if you need any more help just chat here or shoot me a dm

viral loom