Stilllegung des Forums
Das Forum wurde am 05.06.2023 nach über 20 Jahren stillgelegt (weitere Informationen und ein kleiner Rückblick).
Registrierungen, Anmeldungen und Postings sind nicht mehr möglich. Öffentliche Inhalte sind weiterhin zugänglich.
Das Team von spieleprogrammierer.de bedankt sich bei der Community für die vielen schönen Jahre.
Wenn du eine deutschsprachige Spieleentwickler-Community suchst, schau doch mal im Discord und auf ZFX vorbei!
Werbeanzeige
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 |
<Scene> <TransformGroup name="Windrad" translation="-842.217 99.9494 -778.959" rotation="-180 -88.9616 180" clipDistance="300" nodeId="12878"> <TransformGroup name="WindradAnimation" translation="1.11376 15.6627 0" rotation="-180 -1.34443e-007 -178.973" nodeId="12879"> <Shape name="Werbewuerfel" rotation="1.22005e-012 0 7.64172e-012" clipDistance="250" nodeId="12880" materialIds="155, 264" shapeId="1" castsShadows="true" receiveShadows="true" nonRenderable="true"> <Shape name="WindradS" scale="0.01 0.01 0.01" nodeId="12881" materialIds="117, 339, 51" shapeId="2"/> </Shape> </TransformGroup> <Shape name="Gestell" static="true" clipDistance="250" nodeId="12882" materialIds="257, 279, 396, 396, 169, 396, 26, 253, 36, 117" shapeId="3"/> </TransformGroup> </Scene> |
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »BernieSCS« (04.04.2013, 09:33)
Alter Hase
Es ist ja keine Schande etwas falsch zu machen, als Programmierer tu ich das täglich, [...].
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
<UserAttribute nodeId="2259"> <Attribute name="onCreate" type="scriptCallback" value="modOnCreate.FlyingCrow"/> <Attribute name="index" type="string" value="0"/> <Attribute name="clip" type="string" value="flappoSource"/> </UserAttribute> this is the trigger lua FlyingCrow = {}; local featureObject_mt = Class(FlyingCrow, Object); InitObjectClass(FlyingCrow, "FlyingCrow"); function FlyingCrow.onCreate(id) local object = FlyingCrow:new(g_server ~= nil, g_client ~= nil); g_currentMission:addOnCreateLoadedObject(object); object:load(id); object:register(true); end; g_onCreateUtil.addOnCreateFunction("FlyingCrow", FlyingCrow.onCreate); function FlyingCrow:new(isServer, isClient, customMt) local mt = customMt; if mt == nil then mt = featureObject_mt; end; local self = Object:new(isServer, isClient, mt); self.nodeId = 0; return self; end; function FlyingCrow:load(id) self.nodeId = id; local index = Utils.indexToObject(id, getUserAttribute(id, "index")); if index ~= nil then self.animCharSet = getAnimCharacterSet(index); if self.animCharSet ~= 0 then local clip = getAnimClipIndex(self.animCharSet, getUserAttribute(id, "clip")); if clip ~= nil then assignAnimTrackClip(self.animCharSet, 0, clip); if getAnimTrackAssignedClip(self.animCharSet, 0) then local loop = true; setAnimTrackLoopState(self.animCharSet, 0, loop); self.animDuration = getAnimClipDuration(self.animCharSet, clip); end; end; end; end; end; function FlyingCrow:delete() end; function FlyingCrow:update(dt) end; |
Quellcode |
|
1 2 3 4 5 6 |
<i3dAnims> <anim rootnode="0>1" clipname="clip1" inputBinding="Clip1" helpText="Clip1" speed="1"/> <anim rootnode="0>2" clipname="clip2" inputBinding="Clip2" helpText="Clip2" loop="true" speed="1"/> <anim rootnode="0>3" clipname="clip3" inputBinding="Clip3" helpTextOn="Clip3on" helpTextOff="Clip3off" speed="1"/> <anim rootnode="0>4" clipname="leftDoorSource" inputBinding="ldoor" helpText="leftDoor" speed="1" inside="false" outside="true" distNode="0|1" maxDist="1.0"/> </i3dAnims> |
Es ist ja keine Schande etwas falsch zu machen, als Programmierer tu ich das täglich, [...].
Werbeanzeige