Home   Help Search Login Register  

Author Topic: I've tried everything but how do i?  (Read 417 times)

0 Members and 1 Guest are viewing this topic.

BronzeEagle

  • Guest
I've tried everything but how do i?
« on: 23 Dec 2004, 16:42:02 »
How do I set up a trigger that when the main character enters it, will zoom in slow on a target named nat and after about 2 seconds (becuase I'm going to put it in slow motion) will fade out.  
« Last Edit: 23 Dec 2004, 16:43:43 by BronzeEagle »

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:I've tried everything but how do i?
« Reply #1 on: 23 Dec 2004, 16:48:24 »
You need to group the trigger with the unit that you want to fire it.  The camera work is best done dealt with by looking at the turorials in the Editors Dept.  You need to create a camera, give it a location and a target and then tell it move in close.

BronzeEagle

  • Guest
Re:I've tried everything but how do i?
« Reply #2 on: 23 Dec 2004, 17:22:21 »
I'll try something and post it here.   I'm working with the vehicle cam script, ill try putting zoom in slow on the trigger and see what happens but i know that the vehicle cam loops the camera so it'll look funky.  Therefore im going to have to cook up something home made for this trick.   Okay how's this look, its slightly based off of the vehicle cam script:

  ;You need to create a camera,
;give it a location and a target and then tell it move in close.
; syntax:
; [<name of vehicle>, <name of unit to target>, <[xoffset,yoffset,zoffset]>,<relative to vehicle?>,<time limitation>] exec "vehiclecamV3.sqs"
; example: [heli, dilbert,[0,0,-10],false,300] exec "vehiclecam.sqs"

; get camera vehicle and target
_unit = _this select 0
_target = _this select 1
_timelimit = _this select 4

; define relative time at start of this script
_initialtime=daytime

; you can change the positional offsets for the camera (these are relative to the vehicle)
_camoffsetX = (_this select 2) select 0
_camoffsetY = (_this select 2) select 1
_camoffsetZ = (_this select 2) select 2

; do u want your offsets to be relative to the vehicle?
_camrelative = _this select 3

; clear the variable that will stop this script
vehiclecamstop = false

; create a camera
_cam = "camera" camcreate [0,0,0]
_cam cameraeffect ["internal", "back"]

; set posn relative to vehicle
_cam camsettarget _unit
_cam camsetrelpos [_camoffsetX,_camoffsetY,_camoffsetZ]

#commit
; aim camera at target
_cam camcommit 0
_cam camsettarget _target
_cam camcommit 0

;camera zoom command goes here

;camera terminate command
~2
_cam cameraeffect ["terminate", "back"]
camdestroy _cam
TitleCut ["","BLACK IN",2]
exit
« Last Edit: 23 Dec 2004, 17:43:15 by BronzeEagle »

BronzeEagle

  • Guest
Re:I've tried everything but how do i?
« Reply #3 on: 23 Dec 2004, 17:46:08 »
i figured it out thanks.  
« Last Edit: 26 Dec 2004, 20:28:20 by BronzeEagle »