OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Mike on 11 Oct 2002, 05:04:49
-
Hello there, I want to make stuff appear when a trigger is set off.. what can I put in the "condition of presence" field to make it appear when a trigger is set off?
-
You'll need to either use createvehicle or setpos a soldier from another part of the map when your trigger goes off... If you're not too close to your group limit I'd suggest the latter of the two...
just name your soldiers (moron) that you want to appear and make a gamelogic (spot) where you want them to appear at. then put this in the activation of your trigger:
moron setpos [getpos spot select 0, getpos spot select 1,0]
and when yer trigger goes off the moron will be moved to the spot ;D
-
Sorry, I dont think you understood the question, I want to change the condition to maybe a variable.. I dont want the stuff to lag the mission.. not just vehicles.. (everything) .. and to do that I think I have to do something like this but Im not sure 100%
make myself a trigger and in the activation field type:
unitsinarea = false
..
then make a trigger thata activates when west present (my preferance) and in that activation field:
unitsinarea = true
and then in all the objects put " unitsinarea = true " into all of the condition of presence field.. would that work?
-
And i think, Kaliyuga understood your question, but what
he's trying to tell you (between the lines) is, that the
condition of presence can't be used for that. (correct me,
if i'm interpreting you wrong Kaliyuga) ;)
The condition of presence get's only hot, at the initialization
of the mission.
Conditions like: cadetmode, !cadetmode,
alive (name_of_groupleader) can be used in here.
To make units show up during the mission, you need:
createVehicle, createUnit (as Kaliyuga already suggested).
~S~ CD
-
You're right, that's what I was trying to say.. should have elaborated a little more.... ;D
The condition of presence is executed when the mission begins .... any other units have to be created with createunit or createvehicle command.. or brought in from somewhere else....
Yeah another usefull command for that condition of presence line is the benchmark command... haven't seen this one mentioned in a while come to think of it.... ;D
-
Well I should have "read between the lines" but I didnt get what I was looking for up until now.. Just wanted to know if it was possible..
and thanks :)