UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Enabling Physics on picture frames?

broken avatar :(
Created 12 years ago
by mrpeanut188
0 Members and 1 Guest are viewing this topic.
2,084 views
broken avatar :(
×
broken avatar :(
Location: usCali(fornia)
Date Registered: 21 December 2013
Last active: 6 years ago
Posts
417
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
Signature
The sound of God is the screech of tires, lights and magnets, bolts and wires. Strayed from the road, this very one, still to come. The sound of tires is the sound of God, the electric version.
×
mrpeanut188's Groups
mrpeanut188's Contact & Social Linksmrpeanut188mrpeanut1881337p34nut
I want to have my picture frame models physics enabled, so when I shoot them the physix is overwhelming and it falls down to the floor.

So I made this:
Code Snippet
Plaintext
init()
{
pictures_physics_trigger = GetEntArray( "picture_physics", "targetname" );
pictures_physics = GetEntArray( "picture_physics", "targetname" );
}

model_physics_thread()
{
for(i=0;i<pictures_physics_trigger.size;i++)
{
pictures_physics PhysicsLaunch( pictures_physics.origin, (0,-45,0) );
}
}

I'm pretty sure there's a better way, but how can i make it so that it address the pictures_physics array on the current one? pictures_physics.i ?
broken avatar :(
×
broken avatar :(
drago
Location: mx
Date Registered: 5 July 2013
Last active: 7 years ago
Posts
941
Respect
Forum Rank
The Decider
Primary Group
Member
My Contact & Social Links
More
×
jjbradman's Groups
jjbradman's Contact & Social Linksjjbradmanjjbradmanjjbradman
cant you explain yourself better?
also why dont you just make it a dynamic model?
broken avatar :(
×
broken avatar :(
Location: de
Date Registered: 5 April 2013
Last active: 2 years ago
Posts
279
Respect
Forum Rank
Mr. Elemental
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Signature
×
IHammY/'s Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
why not:
-open radiant
-open your map
-right click
-"dyn"
-"model"
-pick your model
-place it
DONE !
broken avatar :(
×
broken avatar :(
Location: usCali(fornia)
Date Registered: 21 December 2013
Last active: 6 years ago
Posts
417
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
×
mrpeanut188's Groups
mrpeanut188's Contact & Social Linksmrpeanut188mrpeanut1881337p34nut
DYNMODEL

DYNMODEL
Was told by like 3 people in chat that this would have to be done with scripts because I couldn't remember the name of the entity. However, wouldn't a dynamic model still have to be activated once shot, or else it would fall to the floor when the map loaded?

 
Loading ...