ubi.com    Forums  Hop To Forum Categories  Ghost Recon  Hop To Forums  Ghost Recon IGOR/Mod Discussion    script wont work and i havent delt with this much

Moderators: MiNeRvA.
Go
New
Find
Notify
Tools
Reply
  
  Login/Join 
<Guest>
Posted
why is my random events not happening all he does is Neo does is his main plan Im just learning random triggers.

Group:
Comment:
player platoon + counters
Trigger Event:
The simulation is starting.
Responses:
Set Player Platoon to (The player-controlled platoon).
Set Neogassimova counter to (A random integer between 1 and 3).

Group:
Comment:
Neo Plan # 2
Trigger Event:
The simulation is initializing.
Responses:
Allow this block to be reactivated.
Continue executing responses if ((The value of Neogassimova counter) is equal to 2).
Cancel execution of any plan assigned to NEO.
Assign Neo Plan #2 to NEO and execute.
Display "plan 2 top hill" to all players.

Group:
Comment:
Neo Plan #3
Trigger Event:
The simulation is initializing.
Responses:
Allow this block to be reactivated.
Continue executing responses if ((The value of Neogassimova counter) is equal to 3).
Cancel execution of any plan assigned to NEO.
Assign Neo plan #3 to NEO and execute.
Display "Plan 3 Jeep" to all players.



celljer12345

Talk less, Kill more!!

My code of honor: I will never shoot you in the back unless your back is towards me.
 
Reply With QuoteEdit or Delete MessageReport This Post
<Guest>
Posted
Your responses are fine, but it's the triggers that are causing the problem: simulation initialising happens before simulation starting. (The sim initialises while the mission is "loading" and you look at the black screen with the box telling you what the time of day is and the difficulty etc. Startup is the instant you arrive in-game and can actually start moving around/shooting etc) This means that you're checking the value of your random integer counter before any values have actually been set in your startup block. Since a counter defaults to zero if not explicitly set to something else, this means that none of your sim initialising blocks get past the continue-if statement...

There's a few ways to get around this, but the easiest is to change the triggers from sim initialising to a time elapsed trigger. Set this time to 1 second or something, and it should run smoothly.

That's the way I'd do it anyway. Hope that helps...
 
Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

ubi.com    Forums  Hop To Forum Categories  Ghost Recon  Hop To Forums  Ghost Recon IGOR/Mod Discussion    script wont work and i havent delt with this much

Terms of Use