Home   Help Search Login Register  

Author Topic: Script Problem..  (Read 1884 times)

0 Members and 1 Guest are viewing this topic.

Mike

  • Guest
Script Problem..
« on: 12 Sep 2002, 20:30:19 »
I saw and tried the following script:

Code: [Select]

_pos = getpos pole
strangeflag switchmove "PBRDriverDead"
strangeflag setdammage 1
#loop
~0.01
strangeflag setpos [(_pos select 0), (_pos select 1)-0.78, 5]
goto "loop"

exit

It basically makes it look like a dead guy (strangeflag) looks like he was hung from a flagpole named (pole)

It worked fine until it was put into a mission with a lot of other things happening in it.. The body (strangeflag) look vertical when it was working fine, when I put it in a mission the body looked like he was shot dead on the ground rather than like he had a parachuting accident.  :(

Can the script be modified to not have what looks like a floating dead body in the middle of the flagpole? It was pretty cool when he looked like he was suspended from the neck.  ;D
« Last Edit: 12 Sep 2002, 20:30:44 by Mike »

b0b

  • Guest
Re:Script Problem..
« Reply #1 on: 14 Sep 2002, 02:45:13 »
This is only a guess but it may have something to do with the fact that the soldiers behaviour is not set to safe(enemy units nearby would end his safe behaviour).  The switchmove command wont work unless the unit is set to safe.

b0b

Offline Blacknite

  • Members
  • *
  • Chiefs runs the navy!
Re: Script Problem..
« Reply #2 on: 30 Jan 2009, 06:17:07 »
_start = getDir strangeflag
;Size of swing from the centre in degrees
; default was 20
_swing = 25

;time for one complete swing in seconds
; default was 10
_period = 12

_degreespersec = 360/_period


strangeflag setDammage 1

#loop

~0.001
strangeflag setpos [getpos guba select 0, getpos guba select 1, 2]
strangeflag switchMove "paradead"


strangeflag setDir (_start + _swing * sin (_degreespersec * _time))


goto "loop"

exit



Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Script Problem..
« Reply #3 on: 30 Jan 2009, 06:21:43 »
Somehow I think after nearly 6 1/2 years the original poster has forgotten about this.


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

Offline Worldeater

  • Former Staff
  • ****
  • Suum cuique
Re: Script Problem..
« Reply #4 on: 30 Jan 2009, 07:04:13 »
If I ever get asked what necrobumping is I will point that person to this thread.
try { return true; } finally { return false; }

Offline Ext3rmin4tor

  • Members
  • *
Re: Script Problem..
« Reply #5 on: 30 Jan 2009, 10:06:58 »
Somehow I think after nearly 6 1/2 years the original poster has forgotten about this.


Planck

LOooooooool, who topped the thread?
How can you shoot women and children?
Easy! Ya' just don't lead'em so much! Ain't war hell?!!

Offline schuler

  • Contributing Member
  • **
Re: Script Problem..
« Reply #6 on: 30 Jan 2009, 13:20:01 »
Quote
If I ever get asked what necrobumping is I will point that person to this thread.
well said, but necrophilia is fun and blacknite might have solved some ones needs, in a mission better in a mission then real life  :shhh:
« Last Edit: 30 Jan 2009, 13:25:17 by schuler »
Semper Fi

Walter_E_Kurtz

  • Guest
Re: Script Problem..
« Reply #7 on: 30 Jan 2009, 15:27:42 »
might have solved some ones needs ...

... but at the risk of causing further confusion. He hasn't even defined what guba is in the line
"strangeflag setpos [getpos guba select 0, getpos guba select 1, 2]".
Presumably it's the flagpole, or streetlamp, or whatever you're stringing them up from.

Nail them up, I say. Nail some sense into them.

Offline schuler

  • Contributing Member
  • **
Re: Script Problem..
« Reply #8 on: 30 Jan 2009, 15:53:33 »
 :D i wonder if we should lock this topic,,,, but yes I agree Walter_E_Kurtz  ;)
I as staff am not promote this type of behavior   :-[
Semper Fi

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Script Problem..
« Reply #9 on: 30 Jan 2009, 15:59:50 »
Aye, I suppose I should have locked it earlier.   :whistle:

Done.


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