Forum Jump :

Author Message


Posts: 19
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2009-03-30 16:20        
     
Ok, probably the strangest question you will ever get on this.

Is there a way i can have one person to be the "virus man".

Right so what this "virus man" does is runs around with a virus like a plague and when he gets within about 1-2m of a person the virus transfers to the other man, leaving the original virus man free of the virus. Get what i mean.

So loads of people can run around trying to get away, then when one person gets caught, everyone has to run away from him.

Is there a script or something i can use to start off with that'll help me achieve this?


Author Message


Posts: 126
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#2 Posted at 2009-03-30 16:24        
     
kinda like tig? haha.

I can't help you I'm afraid, I've had a look on search but didn't find anything.


Advertisement


Author Message


Posts: 19
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2009-03-30 16:25        
     
Yeah exactly like that!!


Author Message


Posts: 36
Rank:


Level: Member

Country: ca
Location:
Occupation: CEO
Age:
In-game name:

 
#4 Posted at 2009-03-30 19:17        
     
I am really new to Arma scripting, so I cant be of specific help, but have an idea if it possible in Arma.
If you have a script that could check [continuously] the possition of ALL players, you would be able to check if any of them was close enough to the possition of the "infected". You would also have to keep track of who was infected, and change that based on who was last infected.

I guess it all depends on IF you can continuously check players possitions. If you can, you would need to create a variable (or array) for each player. An array would work best as you could contain the "possition" which keeps getting updated, and the "infected flag" to know who is contagious. Once you get the infected close enough to another, you clear his infected array entry and flag the new player. You could also create a "delay" timer, so once passed, it wouldnt get passed right back to the original and oscillate. Either that or make the carrier who passes it immune for X amount of time.

Just some idea's, hope it helps.


Author Message


Posts: 20628
Rank:


Level: Super Admin

Country: nl
Location: The Netherlands
Occupation:
Age: 43
In-game name: Foxhound

 
#5 Posted at 2009-03-30 20:01        
     
Although I cant give you the complete answer (but yeah I think this is very well possible), search the mission editing and the scripting forums for "distance", this will give you some results which will allow you to do anything when a unit is within x meters of another unit.
After that all you need to do is make a reference to the sick unit and make that reference change when there was aunit close to it.

Visit my family webshop desteigerhoutshop.nl.