Home   Help Search Login Register  

Author Topic: Changing models  (Read 1322 times)

0 Members and 1 Guest are viewing this topic.

Ares1978

  • Guest
Changing models
« on: 07 Sep 2004, 12:20:42 »
Is it possible to have a separate model for a destroyed object, and if so, how?
I mean, an undamaged bridge would have one model and when it is destroyed, it would switch into a "destroyed_bridge_model"?

DBR_ONIX

  • Guest
Re:Changing models
« Reply #1 on: 07 Sep 2004, 17:00:55 »
If you mean in an addon, yeah
Code: [Select]
_mybridge = bridgename
_newbridge = "bridgeDestroyedClass"

@(!alive _mybridge):GOTO "destroyed"
EXIT
#destroyed
_bridgepos = getpos _mybridge
deletevehicle _mybridge
newbridge = _newbridge camcreate _bridgepos
EXIT

That should be it..
The first 2 lines are the one you need to change ::
_mybridge = bridgename
_newbridge = "bridgeDestroyedClass"

The first one will be the bridge name (The  undrestoyed one),
the second is the class name of the destroyed bridge model..
Hope you get all this ;)
- Ben

Ares1978

  • Guest
Re:Changing models
« Reply #2 on: 08 Sep 2004, 07:28:38 »
Thanks. I hope I got it as well :)