OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: SEAL84 on 26 Mar 2005, 07:18:37

Title: Condition of presence...
Post by: SEAL84 on 26 Mar 2005, 07:18:37
Oookay, so I have a tank with a 50% probability of presence.  It starts empty, with the crew monkeying around nearby.  Now, if there's no tank obviously there's no need for a crew, so I assumed that a condition made true only if the tank appears could be used in the 'condition of presence' field of the crewmen.

So I stuck tankpresent = true in the init field of the tank, and used tankpresent as the condition of presence....no dice.  There seems to be no connection between the two.

I'd like to keep this as simple as possible (and I bet the solution is) but right now my brain is fried....somebody 'splain this please.

Title: Re:Condition of presence...
Post by: THobson on 26 Mar 2005, 07:27:19
Set the probability of presence of the tank commander  to 50%.  Call him tank1Commander

in the condition of presence of each of the other crew members, and of the empty tank itself, set the condition of presence to:

alive tank1Commander

That way if the commader is created so are his crew members and the tank