I try to print simple text on the screen when I pull the an actor's weapon. But it doesn't work.
I have defined a new template as follow :
# DESC:
# BBOX: -.029786 -.019179 -.124701 .024091 .064673 .043406
MyStorm _humanactor thingflags=0x20000000 model3d=st.3do puppet=st.pup soundclass=st_s1.snd maxvel=.25 weapon=+elaser weapon2=+st_punch health=60 maxhealth=60 maxthrust=1 maxrotthrust=90 typeflags=0x20001 fireoffset=(.0048/.05/.012) aiclass=st_def.ai
I simply remove the cog.
And I have created the following cog to create the actor and print the text.
#My simple generator
symbols
message startup
message skill
thing ActorPos nolink
thing Actor mask=-1 local
template ActorTpl
end
# ========================================================================================
code
# ========================================================================================
startup:
Actor = CreateThing(ActorTpl,ActorPos);
CaptureThing(Actor);
return;
# ........................................................................................
skill:
Print("Enter skill");
Print("Enter skill");
Print("Enter skill");
return;
# ........................................................................................
end
So when I try to pull the weapon, nothing is printed to the screen.
Can someone help me please ?
I have defined a new template as follow :
# DESC:
# BBOX: -.029786 -.019179 -.124701 .024091 .064673 .043406
MyStorm _humanactor thingflags=0x20000000 model3d=st.3do puppet=st.pup soundclass=st_s1.snd maxvel=.25 weapon=+elaser weapon2=+st_punch health=60 maxhealth=60 maxthrust=1 maxrotthrust=90 typeflags=0x20001 fireoffset=(.0048/.05/.012) aiclass=st_def.ai
I simply remove the cog.
And I have created the following cog to create the actor and print the text.
#My simple generator
symbols
message startup
message skill
thing ActorPos nolink
thing Actor mask=-1 local
template ActorTpl
end
# ========================================================================================
code
# ========================================================================================
startup:
Actor = CreateThing(ActorTpl,ActorPos);
CaptureThing(Actor);
return;
# ........................................................................................
skill:
Print("Enter skill");
Print("Enter skill");
Print("Enter skill");
return;
# ........................................................................................
end
So when I try to pull the weapon, nothing is printed to the screen.
Can someone help me please ?