OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Mr.T on 15 May 2003, 00:25:34

Title: setdammage not working
Post by: Mr.T on 15 May 2003, 00:25:34
here the thing I have 6 cars (car1....car6) and 6 players (man1....man6)

each car has the following script in its init field " carnumber setdammage -1000 "
each player has the following script in its init field " mannumber setdammage -1000 "

My problem is when im the one hosting the map i seem to be the only one whos car and man is indestructable. All the other players who play do not have the same attributes that i do? Why is this, each player has the same propoties, am i missing something? Why does the script not load for the other players? is there a way around this?


please help

thanks,


Mr.T
Title: Re:setdammage not working
Post by: LCD on 15 May 2003, 01:50:40
da setdammage values r betwen 0-1 nothin else wil work :P

LCD OUT
Title: Re:setdammage not working
Post by: Mr.T on 15 May 2003, 02:08:55
ummm  then how come when i play with my car set to -10 thats how many times i can dive into something before it brakes? and if i set it to -20 i can drive into something 20 times before it brakes?


is there another way to make things indestructable then?


thanks,


Mr.T
Title: Re:setdammage not working
Post by: macguba on 15 May 2003, 11:24:26
Use a looping script

#loop
car1 setdammage 0
~0.5
goto "loop"