Home   Help Search Login Register  

Author Topic: Setvelocity wont work  (Read 504 times)

0 Members and 1 Guest are viewing this topic.

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Setvelocity wont work
« on: 13 Jan 2004, 02:08:23 »
I have an object (a barrel), what I give a velocitiy to eg;

objectname SetVelocity [0,0,30]

But the object doesnt move into the air, instead it sits there until I shoot it.

Once its shot it moves into the air as it should.  Ive tried giving it a setdammage but that doesnt work in place of the object being shot.  Does anyone have a solution to this?  Perhaps a work around, an exta command I can put it that will let the object move?

I cant really have a person shooting the object mid mission, it would look out of place.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Setvelocity wont work
« Reply #1 on: 13 Jan 2004, 02:37:39 »
Try setposing it off the ground slightly before giving it the setvelocity.


Planck
I know a little about a lot, and a lot about a little.

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:Setvelocity wont work
« Reply #2 on: 13 Jan 2004, 03:31:05 »
Nope, the barrel just moves off the ground and stays there.

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:Setvelocity wont work
« Reply #3 on: 13 Jan 2004, 03:54:02 »
Fixed.

I realised that the barrel does need to be damaged, it just needs a nudge.  Unfortunately setpos'ing it didnt work.  So I spawned a grenade underneath it, under the ground, and now it works perfectly.