OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Anton VonE on 09 Mar 2003, 05:11:57

Title: Attaching Game Logic to vehicle
Post by: Anton VonE on 09 Mar 2003, 05:11:57
Hi...

I'd like to attach a few game logics to different positions so that I can use a camera script to look at different angles in a cutscene.

A) I don't know how to work with loops at all

B) Is there an easier way of doing what I want?

Anton
Title: Re:Attaching Game Logic to vehicle
Post by: dmakatra on 09 Mar 2003, 12:43:50
IÂ'll make a script for ya ;D
Title: Re:Attaching Game Logic to vehicle
Post by: dmakatra on 09 Mar 2003, 12:50:07
hereÂ's watcha do(I hope you know how to use a script, or you wont understand this one):

name a GL
name the car

[GameLogicName, CarName] exec "ascript.sqs"

When you want to deactivate the script just type in a on act/script

armsty = true
Title: Re:Attaching Game Logic to vehicle
Post by: Anton VonE on 15 Mar 2003, 06:19:54
Thanks Armstrong...heh...now all I have to do is figure it out...I'm sure it works though. I appreciate your help.  ;)

Anton
Title: Re:Attaching Game Logic to vehicle
Post by: Anton VonE on 16 Mar 2003, 18:36:28
Okay, so I know it works now, because instead of using a game logic, I used a helo and a jeep, and it..haha....put the jeep right in the middle of the helo.

Now, let's say that I wanted the game logic, jeep, whatever, to be 10m in front, 5m to the right, and 3m below the heli....what would I have to change?

Anton