Home   Help Search Login Register  

Author Topic: Palette hovering in air!  (Read 857 times)

0 Members and 1 Guest are viewing this topic.

Mooseman

  • Guest
Palette hovering in air!
« on: 17 Aug 2003, 18:32:11 »
Ever came across this?

I'm using palettes to position soldiers up in a tower. During combat, the palettes slowly hover upwards in the air! This looks strange...

Do you know any ways to keep them from flying in the air/ keepmg their position and not being affected by fireing at them?

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Palette hovering in air!
« Reply #1 on: 17 Aug 2003, 19:02:25 »
I've seen it a few times. Don't know what's causing it though.

One way to do it could be to run a loop script setpossing the pallets on the right place and at the same time giving them health. Something like:

#loop
pallet1 setpos [x,y,z]; pallet1 setdammage 0
pallet2 ...
~0.1
goto "loop"
Not all is lost.

notmucheyecandy

  • Guest
Re:Palette hovering in air!
« Reply #2 on: 17 Aug 2003, 21:32:56 »
try using the setpos command instead of using pallets to postition them

mcnils

  • Guest
Re:Palette hovering in air!
« Reply #3 on: 17 Aug 2003, 21:37:27 »
I had the same problem of palettes howering in the air after being blown up by c4... well,
I left it this way because a setpos loop causes to much lag in Mp games...

Mooseman

  • Guest
Re:Palette hovering in air!
« Reply #4 on: 18 Aug 2003, 16:34:20 »
@ Notmucheyecandy: Setpos is okay, but the soldiers fall down when they duck. I put them on a lighthouse where the balcony is very narrow. So I had to use palettes or something to allow for room for ducking.

@ All: I fixed the problem meanwhile using a script

Code: [Select]
# Loop01
Palette Setpos [(Getpos Palette Select 0),(Getpos Palette Select 1), Hight]
Palette setdir 0
Palette setvelocity [0,0,0]
~ 0.001
goto "Loop01"
exit

Setvelocity helped a lot...