Jump to content
  • 0

Trigger spawn box on the passage of a Ural


Mig

Question

10 answers to this question

Recommended Posts

  • 0

why use a trigger to spawn the box?

 

i mean dont get me wrong, it wont be hard, but why not just spawn the box via a script on server startup?

 

else you will just have to build in precations for it not to spawn more than once or it will spawn a new box ever time a player comes near ...

Link to comment
Share on other sites

  • 0

what exactly are you trying to make here, a mission?

 

all this will depend on how you expect to execute this, do you intend that the players are supposed to spawn the box or do you want the server to do everything ...

 

all that affect how the code should be written, so you have to decide how it is supposed to work, before you can get a propper example.

 

 

_position = somePositionArray;
_nearUral = nearestObjects [_position, ["Truck"], 50]; //or use Ural Classname if you want at specific one

if (_nearUral > 0) then {
\* spawn box script*\
};

to give you an idea

 

 

this dosnt really make much sence, how do you intend to execute this and what if it activates before someone gets there in a ural, then it wont happend again ... if you would just execute this, nothing would happend unless a truck is near that position on server restart, if you execute this in a trigger it will trigger for each player entering that trigger.

Link to comment
Share on other sites

  • 0

this was just a small example, nothing he can actually use ;P

 

to get everything done right it will take a while and some trial and error.

 

problem with spawning it from the client would be antihack and maybe if done wrong only visible by the player who executed this script.

 

best thing is to use WAI for this and create a new mission. Probably there is already something with the same idea out there :)

Link to comment
Share on other sites

  • 0

yes to create a mission.

the players must take ural,
drive the ural to a point, get on that spawn a box with the loot

 

i think the easiest way to do what you want, would be to be to use a mission system and modify a mission to waituntil both a player and a ural is near the area of completion and then create the loot box, you could easily make something like this with like DZMS or whatever, if you know what you are doing.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...