OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Hertog Jan on 15 Apr 2005, 14:24:41

Title: strange error message
Post by: Hertog Jan on 15 Apr 2005, 14:24:41
Hey,

I have a camera script and when I run it the camera is somewhere above the sea (i did not put him there) and a message is displayed saying:

'_ppos = getpos_this|#|:, error type array, expected object

What does this mean??
I've copied the whole script from another script I mad awhile ago, and that one is working.

In my scrip my objects are an empty UAZ and a soldier, and the names are correctly in the script...

Plz help me out...
Title: Re:strange error message
Post by: bedges on 15 Apr 2005, 20:20:34
a space is needed between the getpos and _this. that may be it...

if that doesn't work, copy/paste your script, or attach it to your next post.

Title: Re:strange error message
Post by: Hertog Jan on 15 Apr 2005, 20:27:02
it's fixed now but I have another qeustion...

In my cutscne I want a black op who is in prone position, take his binocular while he remains prone...
What's the command for this? I only know the "standToBinocStand" but he isn't allowed 2 stand up.

thnx
Title: Re:strange error message
Post by: bedges on 15 Apr 2005, 20:32:10
loon_name switchmove "LyingToBinocLying"

see attached ;)
Title: Re:strange error message
Post by: Hertog Jan on 16 Apr 2005, 21:04:00
thank you, and for the list, this will be usefull