OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Rusio 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
-
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
-
[attachment deleted by admin]
-
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
-
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