Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating a Random variable
Linus Ågren Offline
Senior Member

Posts: 309
Threads: 58
Joined: Jan 2011
Reputation: 5
#3
RE: Creating a Random variable

I made a random push on rocks when a corridor caves in so they won't go in the same path all the time. I did this:

PHP Code: (Select All)
float spX RandFloat(3.0f6.0f);
float spY RandFloat(2.0f5.0f);
float spZ RandFloat(3.0f5.0f);


AddPropImpulse("dungeon_small01_5"spXspYspZ"");
AddPropImpulse("dungeon_small01_6"spXspYspZ"");
AddPropImpulse("stone_small01_brown_2"spXspYspZ"");
AddPropImpulse("stone_small01_brown_3"spXspYspZ""); 

If this is not what you're looking for, be more specific please. (:

Creator of The Dark Treasure.
03-31-2012, 11:11 AM
Website Find


Messages In This Thread
Creating a Random variable - by bagmanpt - 03-31-2012, 08:54 AM
RE: Creating a Random variable - by SilentStriker - 03-31-2012, 10:15 AM
RE: Creating a Random variable - by Linus Ågren - 03-31-2012, 11:11 AM
RE: Creating a Random variable - by bagmanpt - 03-31-2012, 11:14 AM
RE: Creating a Random variable - by SilentStriker - 03-31-2012, 11:22 AM



Users browsing this thread: 1 Guest(s)