Join in progress and eventhandler
2 posters
United States Intelligence :: Games :: ArmA 2 :: Editing
Page 1 of 1
Join in progress and eventhandler
Join in progress and eventhandler
Before I made a thread and ask about our problem with JIP and the damage eventhandler, I searched to see if there was a relevant thread I could post in.
There WAS one.
After reading the thread, I realized I didn't understand enough of what was discussed to know if an answer to our problem was already talked about or not.
Zombie, please peruse the linked thread at your leisure and see of there is already a solution to our problem in there.
If not, I will then post the question.
thanks
Join in progress
pay special attention to:
post 12
post 18
Before I made a thread and ask about our problem with JIP and the damage eventhandler, I searched to see if there was a relevant thread I could post in.
There WAS one.
After reading the thread, I realized I didn't understand enough of what was discussed to know if an answer to our problem was already talked about or not.
Zombie, please peruse the linked thread at your leisure and see of there is already a solution to our problem in there.
If not, I will then post the question.
thanks
Join in progress
pay special attention to:
post 12
post 18
Re: Join in progress and eventhandler
our damage eventhandler fires when you start the mission and only then. if we want to continue to use that tool and be JIP compatible, another method to activate it will have to be used.
can you trigger the eventhandler from within a script other than the init?
how about
reference
lol it cant be that easy
To execute a script on server upon player connection, use onPlayerConnected statement in the init.sqf for example.
can you trigger the eventhandler from within a script other than the init?
how about
- Code:
onPlayerConnected "[_id, _name] execVM ""eventhandler.sqs""";
reference
lol it cant be that easy
Re: Join in progress and eventhandler
I think you can, but eventhandlers aren't sqs's so it will take some experimentation.
Re: Join in progress and eventhandler
well, you can trigger the eventhandler from within an init.sqs or sqf, thats where my thought process came from.
how about
how about
- Code:
onPlayerConnected "[_id, _name] execVM ""init.sqf""";
Re: Join in progress and eventhandler
I could do that but it wouldn't solve the problem as you wrote it. The eventhandler is called in the units init field, not the init.sqf. I may be able to move all the unit inits to the init.sqf and then use onplayerconnected though.
Re: Join in progress and eventhandler
i didnt yet test the mission on the dedi, as asked last night...
United States Intelligence :: Games :: ArmA 2 :: Editing
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum