Jump to content
Sign in to follow this  
Pundaria

A unit appear after some time?

Recommended Posts

For a unit appear after some time

Scripting using trigger is too tidious... so can someone tell me a way using condition of presence to do this?:(

Share this post


Link to post
Share on other sites

There is no way to do it with cond of presence as it's only used to determine during mission loading if the unit should exists.

1. Name the unit and hide it to a remote corner of the map.

2. Create and name an invis hpad (empty>objects>h invisible) to the position you want the unit to show up.

3. Create a trigger:

condition: time > 123

123 is the time in seconds that is waited before showing the unit.

onAct: theUnitName setpos getpos theHpadName

Share this post


Link to post
Share on other sites

You could try in the units init field: this hideObject true

Create a trigger. Exit, then group the unit to trigger.

Open trigger again: Condition: Time > 10. On Activation: (thislist select 0) hideObject false

Share this post


Link to post
Share on other sites
There is no way to do it with cond of presence as it's only used to determine during mission loading if the unit should exists.

1. Name the unit and hide it to a remote corner of the map.

2. Create and name an invis hpad (empty>objects>h invisible) to the position you want the unit to show up.

3. Create a trigger:

condition: time > 123

123 is the time in seconds that is waited before showing the unit.

onAct: theUnitName setpos getpos theHpadName

Could you do that with a marker instead of an invisible Helipad?

Share this post


Link to post
Share on other sites

You could just use the trigger as the location as long as you give it a name it works just like a game logic.

or this in an init

obj hideobject true;call { [] spawn { sleep 15; obj hideobject false}};

or you can use a wait until, it will become visible when test is set to true ie test=true

obj1 hideobject true;call { [] spawn { waituntil {test}; obj1 hideobject false}};

using the default this won't work so you need to use the objects name.

Edited by F2k Sel

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×