Can i change an actor density in game?

Hellow everybody

I wonder if i can change an actor density in my game?
Let's say i create a rule that in certain condition the actor density change from 50 to 100. I've try to use "change attribute" from "self.physics.density" to "100" from the default "50". But it didn't effect the actor at all. Any idea?

thx before

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    No once you set it theres no way to change it :( it would be cool if we could though.

    Darren.
  • famekraftsfamekrafts Member, BASIC Posts: 834
    Normally in the attribute editor 50 doesn't work but .5 works so try using that but if Darren says then probably there is no way to change it.
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    Only thing i can think of is to spawn/recycle another duplicate actor but, have it with those density changes you would like, and have it swap out with the original actor once whatever action happens that makes the density change.

    Make sense?
  • williamt2706williamt2706 Member, PRO Posts: 85
    @UtopianGames
    Well . . too bad then, thx for the answer :)

    @wickedsunny
    Yeah, i've tried it and didn't work at all

    @SlickZero
    I've think to do it that way before, I just wandering if i could change the density in the game, if it could then i don't need to spawn a new actor again. But looks like i've got to do it that way . . .

    Thx all :)
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    as far as I can remember, you can't change any physics attributes during gameplay.
Sign In or Register to comment.