Home   Help Search Login Register  

Author Topic: need help with basic flare scripting  (Read 1532 times)

0 Members and 1 Guest are viewing this topic.

Rusio

  • Guest
need help with basic flare scripting
« on: 30 Aug 2002, 00:24:27 »
I just want a flare to appear 10 or so meters above an object, and it sounded easy when i started but #@$% it i can't get it to work!

Could someone toss a little script my way?

cheers

T.S.C.Plage

  • Guest
Re:need help with basic flare scripting
« Reply #1 on: 30 Aug 2002, 00:35:30 »
Use the camcreate command:

name = "flarered" camcreate [X,Y,Z]    

For example:

flare1 = "flarered" camcreate [ 3000 , 1500 , 50 ]  

Place this in a script or trigger and a flare will be created at 3000/1500 in a height of 50 meters.

You can get the position from the mission.sqm. Place an object where you want to have the flare copy the coordinates (attention: in mission.sqm they're written [X,Z,Y] not [X,Y,Z] so you've to replace the height) and delete it.

You can also use a trigger and copy it's position.

I'm not sure about if you can write:

name = "flarered" camcreate [object1, 50]  

What's up with this mates?

Greetz
Plage
« Last Edit: 30 Aug 2002, 00:38:02 by T.S.C.Plage »

Rusio

  • Guest
Re:need help with basic flare scripting
« Reply #2 on: 30 Aug 2002, 00:49:07 »


[attachment deleted by admin]

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:need help with basic flare scripting
« Reply #3 on: 30 Aug 2002, 01:14:52 »
i think something does happen - but my guess is you took that posistion from a person on the map?

well that would mean that the flare is created at their posistion but then sinks into the ground.

try and use the camera.sqs to find map posistions - much easier - look into the cutscene forum to see the tute - it will post a co-ordinate possition for you whereever you place the camera
Proud Member of the Volunteer Commando Battalion

mikeb

  • Guest
Re:need help with basic flare scripting
« Reply #4 on: 30 Aug 2002, 02:44:07 »
if you look at those coordinates, the flare appears over 4000m up!!!  a little to high to see I think!

For the coordinates just place your object, and name it (tank for example) and put in the trigger for the flare

goflare="flarered" camcreate [getpos tank select 0, getpos tank select 1, 150]

This creates and red flare 50 meters above the tank (from gound level).  I know, I've tried it.

Messiah is right by the way, you can't place it to low because it drops a bit before lighting, so if you don't see anything just raise it a little higher