OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: NightJay0044 on 30 Jun 2004, 01:37:54

Title: Targeting IDs????
Post by: NightJay0044 on 30 Jun 2004, 01:37:54
Is it possible to target I.D. Numbers in the mission editor, using camera scripting? If so how would you do that?

Title: Re:Targeting IDs????
Post by: macguba on 30 Jun 2004, 01:52:16
I don't quite follow.   Are you trying to make a cutscene or get somebody to shoot at something?   (Or both?)

If you are just making a cutscene, read snYpir's camera tute (I suspect you already have) and then messiah's camera.sqs tutorial.    This is utterly essential - you'll see why when you read it and try it out.
Title: Re:Targeting IDs????
Post by: GrimMonkey on 30 Jun 2004, 02:32:44
Or maybe he's trying to target a location on the map for a cutscene. If so, just use Game Logics to target and use 'camSetRelPos'.

If you need something to shoot at, download the invisible unit addon, I think FDF has it. Check their site.

If you need to learn how to camera script, what Macguba said.


Beware the GrimMonkey
Title: Re:Targeting IDs????
Post by: NightJay0044 on 30 Jun 2004, 04:45:53
---MACGuba----
Thanks for your reply. You are just all over the forums. Glad you know how to do alot of things. I'm not trying to shoot anybody. I'm pretty good at camera scripting now. Just got to learn how to rotate it better and follow objects that
move an things like that.

----Grim Monkey-----
Thanks for your reply too. yes iam trying to target I.D.s on the map. You know when you click that button right above the "show Texture" button. "Show ID". That's what i meant. Just wondering if you could target those. and what they are there for.

Title: Re:Targeting IDs????
Post by: ponq on 30 Jun 2004, 09:56:44
I used the camera.sqs script, and pointed it at a house on nogova. Pressing "space" got me the red square. This is what I got with that:

;=== 10:32:28
_camera camSetTarget '15189800# 41947: domek_kovarna'
_camera camSetPos [4838.75,5503.09,2.00]
_camera camSetFOV 0.232
_camera camCommit 0
@camCommitted _camera


Where "41947" is the Object ID in the editor. Maybe try to something with this.
Title: Re:Targeting IDs????
Post by: NightJay0044 on 30 Jun 2004, 15:54:24
Yeah maybe that will work. Thanks.
Title: Re:Targeting IDs????
Post by: Blanco on 30 Jun 2004, 17:40:59
Why don't you use the object coimmand?

Code: [Select]
_camera camSetTarget object XXXXXX
_camera camSetPos [4838.75,5503.09,2.00]
_camera camSetFOV 0.232
_camera camCommit 0
@camCommitted _camera

...where XXXXXX is the id