Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Highlander500

[Solved] enableSimulation problem.

Recommended Posts

Hi all, first time here so hello, and please be nice! 😁

 

Anyway sorry if this has been answered before. Im usually quite good at googling content but sometimes the context isnt quite there.

Most of the searches I have done already for answers leads me here and its been REALY useful so thanks!

 

Ok so I am building a custom mission, but for testing i use a blank mission as i have a scripted intro, just quicker for me to test scripts.

 

I have placed a Mini-Spike Launcher(AA) with crew, and a team leader into a group.

 

I have set enableSimulation False; on all 3 of the objects. On a trigger I have forEach units AA1; (the team variable name is AA1) with _x enableSimulation True;

 

Now for the team leader this works no problem, but the AA crew attached to the spike launcher does not re-enable.

I can shoot him, he bleeds, he grunts (lol) but does not die or do anything.

 

Do i need to enable the crewman differently?

 

{
     _x enableSimulation True;
}forEach units AA1;

Any help would be appreciated, thought I have noticed the spike launcher does not show inside the group hierarchy but the 2 infantry units do (this seems the norm from what i can tell)

 

Thanks

 

Highlander

 

 

Share this post


Link to post
Share on other sites

It seems after hours of playing about, I have removed the enablesimulation false from the group, set it on the 2 riflemen directly, and not set it on the AT launcher.

 

This seems to work pretty well now after testing several times all good!

  • Like 1

Share this post


Link to post
Share on other sites
On 9/26/2023 at 9:11 PM, thy_ said:

so, is it solved?

 

Yessir as explained i chose a slightly different way to enable simulation (on the units not the squad) and the code works as intended.

Thanks

  • Like 1

Share this post


Link to post
Share on other sites
2 hours ago, Highlander500 said:

 

Yessir as explained i chose a slightly different way to enable simulation (on the units not the squad) and the code works as intended.

Thanks

Generally i enable simulation on the attributes box. if you use wake up simulation they will simulate when an enemy gets within range,if not then its just the player. This should work fine on the squad icon too

Share this post


Link to post
Share on other sites
5 hours ago, Highlander500 said:

 

Yessir as explained i chose a slightly different way to enable simulation (on the units not the squad) and the code works as intended.

Thanks

 

So a good practice here in BIS forums is to set "[SOLVED]" at the beginning of the topic title. Cheers!

Share this post


Link to post
Share on other sites
On 10/12/2023 at 2:33 PM, thy_ said:

So a good practice here in BIS forums is to set "[SOLVED]" at the beginning of the topic title. Cheers!

I was looking for a button to do that, didnt realise you edited the title, will do thanks for the heads up!

  • Like 1

Share this post


Link to post
Share on other sites

×