[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
Battlefield Modding Tutorials BFMODS :: View topic - LandmineProjectile popcorn
Battlefield Modding Tutorials BFMODS
https://battlefieldmodding.com/ssm/phpBB3/

LandmineProjectile popcorn
https://battlefieldmodding.com/ssm/phpBB3/viewtopic.php?f=3&t=5411
Page 1 of 1

Author:  anselmus [ Mon Nov 23, 2009 1:40 am ]
Post subject:  LandmineProjectile popcorn

Ok, I made a ObjectSpawner Projectile LandmineProjectile, but mine is like popcorn on the ground, if I leave "ObjectTemplate.setHasMobilePhysics 0", the landmine does not explode the vehicles
Can anyone help?

rem -----------------------------------------
rem --- Projectile ---
rem -----------------------------------------
ObjectTemplate.create ObjectSpawner Projectile
ObjectTemplate.active ObjectSpawner Projectile LandmineProjectile

ObjectTemplate.create ObjectSpawner Projectile LandmineProjectile
ObjectTemplate.networkableInfo ProjectileInfo
ObjectTemplate.geometry Landmine
ObjectTemplate.setHasMobilePhysics 1
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.setHasCollisionPhysics 1

Author:  mike2many [ Mon Nov 23, 2009 4:00 am ]
Post subject:  Re: LandmineProjectile popcorn


Author:  anselmus [ Mon Nov 23, 2009 11:05 pm ]
Post subject:  Re: LandmineProjectile popcorn

The problem is that I want mine does not move.

"ObjectTemplate.setHasMobilePhysics 1" = explode the vehicles
"ObjectTemplate.setHasMobilePhysics 0" = does not move and does not blow up the vehicles.

Author:  Apache Thunder [ Tue Nov 24, 2009 3:04 am ]
Post subject:  Re: LandmineProjectile popcorn


Author:  anselmus [ Sun Nov 29, 2009 9:24 pm ]
Post subject:  Re: LandmineProjectile popcorn

Ok, I created it and it works, but is not static but exploding the vehicles that pass over the mine, some explanation why mine does not blow up the vehicles to be static?


OBJECTSPAWNTEMPLATE.CON
rem -----------------------------------------
rem --- Projectile ---
rem -----------------------------------------
ObjectTemplate.create ObjectSpawner Projectile
ObjectTemplate.active ObjectSpawner Projectile LandmineProjectile

ObjectTemplate.create ObjectSpawner Projectile LandmineProjectile
ObjectTemplate.networkableInfo ProjectileInfo
ObjectTemplate.geometry Landmine
ObjectTemplate.setHasMobilePhysics 1
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.setHasCollisionPhysics 1

OBJECTSPAWN.CON

Object.create Projectile LandmineProjectileSpawner
Object.absolutePosition 536.28/76.16/463.95 ( example )
Object.rotation 0/0.00/0.00

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/