Spawn Object
-
- Posts: 48
- Joined: Tue Jan 04, 2011 10:50 am
- Contact:
Spawn Object
Help me. How to make so that the model near the player was created??
-
- Posts: 108
- Joined: Fri Nov 20, 2009 1:20 pm
- Location: Ukraine
- Contact:
Re: Spawn Object
Read qb files and use brain.
-
- Posts: 132
- Joined: Tue Jun 08, 2010 11:11 pm
- Contact:
Re: Spawn Object
Lezzer wrote:Help me. How to make so that the model near the player was created??
Code: Select all
CreateCompositeObject
-
- Posts: 108
- Joined: Fri Nov 20, 2009 1:20 pm
- Location: Ukraine
- Contact:
Re: Spawn Object
Yes, use and set global pos script.
Like this:
Code: Select all
CreateCompositeObject
Like this:
Code: Select all
:i $skater$.$Obj_GetPosition$
:i $new_pos$ = (%GLOBAL%$pos$ + %vec3(0.000,0.000,0.000))
:i $your_model_id$.call $Obj_SetPosition$ arguments
$position$ = %GLOBAL%$new_pos$
-
- Posts: 132
- Joined: Tue Jun 08, 2010 11:11 pm
- Contact:
Re: Spawn Object
use params when you're setting the position.
Code: Select all
:i $skater$.$Obj_GetPosition$
:i $CreateCompositeObject$ :s{
:i $Components$ =
:i :a{
*components here*
:i :a}
:i $params$ = :s{$pos$ = %GLOBAL%$pos$:s}
:i :s}
-
- Posts: 23
- Joined: Fri Mar 04, 2011 8:37 pm
- Contact:
Re: Spawn Object
i's doeasn't working :
-
- Posts: 132
- Joined: Tue Jun 08, 2010 11:11 pm
- Contact:
-
- Posts: 32
- Joined: Thu Oct 15, 2009 8:33 am
- Contact:
Re: Spawn Object
Can I use UnpausePhysics for objects to do it tangible?
-
- Posts: 132
- Joined: Tue Jun 08, 2010 11:11 pm
- Contact:
Re: Spawn Object
sindrom wrote:Can I use UnpausePhysics for objects to do it tangible?
no. if you mean "bouncing" objects you need to add the rigidbody parameter, and use
Code: Select all
:i *object id*.$RigidBody_Wake$
-
- Posts: 23
- Joined: Fri Mar 04, 2011 8:37 pm
- Contact:
Re: Spawn Object
file wasn't compiled....
-
- Posts: 185
- Joined: Sat May 01, 2010 5:57 pm
- Contact:
Re: Spawn Object
You should learn how to make simpler scripts first in order to better your knowledge on how scripts work, making a menu etc, before you jump to something of such proportions.
-
- Posts: 23
- Joined: Fri Mar 04, 2011 8:37 pm
- Contact:
Re: Spawn Object
where is error (i wanna wpawn near skater)
...............................................
:i $CreateCompositeObject$:s{
:i $Components$ =
:i :a{
:i :s{$Component$ = $Motion$:s}
:i :s{$Component$ = $LockObj$:s}
:i :s{$Component$ = $rigidbody$:s}
:i :s{$Component$ = call $model$ arguments
$model$ = %GLOBAL%$model$:s}
:i :a}
:i $params$ = :s{$pos$ = %GLOBAL%$pos$:s}
:i $params$ = :s{$name$ = %GLOBAL%$mangled_id$:s}
:i :s}
:i %GLOBAL%$mangled_id$.call $Obj_LockToObject$ arguments
$ObjectName$ = %GLOBAL%$name$%vec3(-60.000000,0.000000,0.000000)
:i call $MangleChecksums$ arguments
$a$ = %GLOBAL%$name$$b$ = $marker_cone2$
:i $CreateCompositeObject$:s{
:i $Components$ =
:i :a{
:i :s{$Component$ = $Motion$:s}
:i :s{$Component$ = $LockObj$:s}
:i :s{$Component$ = $rigidbody$:s}
:i :s{$Component$ = call $model$ arguments
$model$ = %GLOBAL%$model$:s}
:i :a}
:i $params$ = :s{$pos$ = %GLOBAL%$pos$:s}
:i $params$ = :s{$name$ = %GLOBAL%$mangled_id$:s}
:i :s}
:i %GLOBAL%$mangled_id$.call $Obj_LockToObject$ arguments
$ObjectName$ = %GLOBAL%$name$%vec3(60.000000,0.000000,0.000000)
...............................................
:i $CreateCompositeObject$:s{
:i $Components$ =
:i :a{
:i :s{$Component$ = $Motion$:s}
:i :s{$Component$ = $LockObj$:s}
:i :s{$Component$ = $rigidbody$:s}
:i :s{$Component$ = call $model$ arguments
$model$ = %GLOBAL%$model$:s}
:i :a}
:i $params$ = :s{$pos$ = %GLOBAL%$pos$:s}
:i $params$ = :s{$name$ = %GLOBAL%$mangled_id$:s}
:i :s}
:i %GLOBAL%$mangled_id$.call $Obj_LockToObject$ arguments
$ObjectName$ = %GLOBAL%$name$%vec3(-60.000000,0.000000,0.000000)
:i call $MangleChecksums$ arguments
$a$ = %GLOBAL%$name$$b$ = $marker_cone2$
:i $CreateCompositeObject$:s{
:i $Components$ =
:i :a{
:i :s{$Component$ = $Motion$:s}
:i :s{$Component$ = $LockObj$:s}
:i :s{$Component$ = $rigidbody$:s}
:i :s{$Component$ = call $model$ arguments
$model$ = %GLOBAL%$model$:s}
:i :a}
:i $params$ = :s{$pos$ = %GLOBAL%$pos$:s}
:i $params$ = :s{$name$ = %GLOBAL%$mangled_id$:s}
:i :s}
:i %GLOBAL%$mangled_id$.call $Obj_LockToObject$ arguments
$ObjectName$ = %GLOBAL%$name$%vec3(60.000000,0.000000,0.000000)
-
- Posts: 48
- Joined: Tue Jan 04, 2011 10:50 am
- Contact:
Re: Spawn Object
polak thanks for a code but this spawn at me already is.
At present it would be necessary for me that the model was created near the player and at movement of the player the model moved together with it.
At present it would be necessary for me that the model was created near the player and at movement of the player the model moved together with it.
-
- Posts: 23
- Joined: Fri Mar 04, 2011 8:37 pm
- Contact:
Re: Spawn Object
its no all script
-
- Posts: 23
- Joined: Fri Mar 04, 2011 8:37 pm
- Contact:
Re: Spawn Object
ok i done .
i replace params
i replace params
Who is online
Users browsing this forum: No registered users and 37 guests