#Weapon animation on pickup

1 messages · Page 1 of 1 (latest)

sick plover
sick plover
dim relic
#

new component > when object is created

#

as far as i remember

sick plover
sick plover
#

@zealous fjord Other guy isn't much help, return and assist me please

dim relic
#

ping satt or something

sick plover
#

Do init. scripts in weapons activate on pick-up?

#

Alright, works for me.

dim relic
#

this is literally the same thing that i've said before

#

💀

#

guess im bad at explanations

agile surge
agile surge
#

idk i put an animate in when collected and it worked

sick plover
#

By the way, I should specify - I do want the weapon to be selected on pick-up. I've been selecting "Auto-use on pickup" to make that happen.

#

Nevermind, I don't need a new video. I tried using animations in "when collected" and it didn't work. You can see it in the first video.

#

Elaborate.

#

I'm assuming you mean
On pickup > Script > Switch weapon to gun that was picked up > Animate

agile surge
sick plover
#

Why would I need to self destroy??

agile surge
#

Auto use seems to work just fine with weapons

sick plover
#

That sounds unnecessary. Is there really no way to do it with 1?

agile surge
sick plover
#

I don't want to have 2 versions of one weapon. There's no guarantee that would even do what I REALLY need, which is animate on pickup.

sick plover
#

Well, I need help with animating on pickup. Let's stop this tangent.

agile surge
sick plover
#

You worded it a bit strangely. I don't quite understand.

#

Video.

agile surge
sick plover
agile surge
#

when object is created works too

#

with a very small script needed from what i know

#

if you don't want the weapon to just play it when createfd

#

well yes but it also makes it play when equipped

#

but you can just add a Component with a true/false that checks if the weapon has been picked up to avoid it from animating at start

#

idk in my testing the weapon animated with the when object is created

#

and to avoid it animating on the map start just slap a true/false

#

true/false is just a number that goes to 0 or 1

dim relic
agile surge
#

0 is false and 1 is true

agile surge
dim relic
#

before zeditor

agile surge
#

what more things would you use a true/false converted to numbers in

#

you can do that with true/falses

#

i don't really get what do you mean with select/unselect spam tho

#

it would be the same as numbers

dim relic
#

me using name and description attributes as variables

sick plover
#

worked!

agile surge
#

i mean if you just need a check for how many times you equipped and dequipped or something you can just use a +1

sick plover
#

New problem

#

The animation will immediately play when I start the game

#

I'm gonna try tweaking it

sick plover
#

Exactly the same as what you did, no need

#

Wait nvm I did it wrong one sec

river shale
#

i know how to fix this

#

lemme get an example script

dim relic
#

what are you guys talking about lol

agile surge
river shale
dim relic
#

what bool has to do with item collection thing??

agile surge
river shale
#

when the object is equipped
it checks if the weapon user is the main actor
then it’ll animate

sick plover
#

I want it to only trigger on first equip.

river shale
#

oh mk

dim relic
#

you can do it without variables

sick plover
#

Still playing when starting

#

Will record this time one second

river shale
#

try changing the >= to just =

#

i think you can just do = because it’ll just keep on animating once it’s greater than two

dim relic
#

??

#

anyway i can't think my brain isn't braining

#

i haven't slept since yesterday so i might be stupid

sick plover
river shale
#

i think thars what he wanted

sick plover
#

that's the point you moron

dim relic
#

take a chill pill

#

hold on

sick plover
#

WAIT I KNOW THE PROBLEM

#

Let me go fix that rw

#

rq

agile surge
#

so like should i send a video

#

Basically item animates only when equipped (+ only when equipped once)

sick plover
#

Nevermind, didn't fix it

#

Either plays when map starts (when 1 is used) or doesn't play unless you unequip then reequip (when 2 is used)

agile surge
sick plover
#

gonna go play vr

#

I'll try X's method when I stop playing

sick plover
agile surge
agile surge
sick plover
#

What number is your component starting at

#

Same here

agile surge
#

My method works just fine

sick plover
#

kab00m, are you running 3x or 4x

#

Same here.

agile surge
#

same mr_julian

sick plover
#

I can't even play VR too, my older brother only takes it NOW even though he had the chance to use it several times

sick plover
#

I give up for today, I'll try this again tomorrow smh

agile surge
sick plover
#

I just ended up using a different pickup system. The player has to manually tap on a prop that puts the weapon in their bag, then the prop is deleted.

#

Close this.