OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Mike on 12 Sep 2002, 20:30:19

Title: Script Problem..
Post by: Mike 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
Title: Re:Script Problem..
Post by: b0b 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
Title: Re: Script Problem..
Post by: Blacknite 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


Title: Re: Script Problem..
Post by: Planck on 30 Jan 2009, 06:21:43
Somehow I think after nearly 6 1/2 years the original poster has forgotten about this.


Planck
Title: Re: Script Problem..
Post by: Worldeater on 30 Jan 2009, 07:04:13
If I ever get asked what necrobumping is I will point that person to this thread.
Title: Re: Script Problem..
Post by: Ext3rmin4tor 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?
Title: Re: Script Problem..
Post by: schuler 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:
Title: Re: Script Problem..
Post by: Walter_E_Kurtz 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.
Title: Re: Script Problem..
Post by: schuler 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   :-[
Title: Re: Script Problem..
Post by: Planck on 30 Jan 2009, 15:59:50
Aye, I suppose I should have locked it earlier.   :whistle:

Done.


Planck