Jump to content
Tolph

Unit Variablenames not working properly?

Recommended Posts

Soooo I am relatively new to scripting and I noticed a (to me) weird behavior. But maybe I am doing something wrong and you can help me figure it out.

First of all I don't even know if this is the right thread or not. (For some reason it was posted in "ADDONS - Configs & Scripting" even though I think I selected "MISSION EDITING & SCRIPTING")

Situation:
I have a very, very simple IED script with triggers. And by simple I mean just a "ied setDamage 1;" on activation.

Last saturday my friends and I played a little missions running this exact "script" and had a blast (haha funny, I know) playing it.
I now implemented the same script into a test mission and decided to make it a little more fancy but those changes don't need to be listed here.

 

Problem:

I can not "interact" in any way with my IEDs on our dedicated.

Large Urban IED with the name "ied".

Blufor Soldier with the name "p4".

Examples in Debug Console:

 

"alive ied"  returns nothing on the dedicated or true/false on my local hosted Server

"alive p4" returns true/false in both cases

(This part is the same for both missions.)

 

If the Trigger is activated, "ied setDamage 1;" will be executed.

This works just fine on my local server.

On the dedicated however this does only work on the "original" mission we played last Saturday.

 

Am I doing something wrong?

 

Share this post


Link to post
Share on other sites

Hi there!

Just wondering what will happen when you do it with a simple remoteExec. 
Might be a locality issue.

What happens when you do:

[] remoteExec ["systemChat str alive ied",2 ]; ? 


This will run the script directly on the dedicated server (I believe so)
I don't expect this to work, but well, it's a start. 

Also:

Are the triggers created in the 3den editor? 
Or created with a script on init?

_______________________

I'd rather try something stupid than try nothing at all
Debugging at its finest

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

×